Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Continuing from "Turning foreach into map?" - perlreftut and References

by Random_Walk (Prior)
on Apr 06, 2005 at 12:26 UTC ( [id://445277]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    User enters a list of food items
    Program looks up group for food items
    Program looks up rules to see if those groups can be combined or not.
    Program reports to user
    
  2. or download this
    @food=(
            ['eggs', 'fish'],
    ...
    );
    
    print $food[3][0]; # prints beer
    
  3. or download this
    %food=( 'carbs' => ['breed', 'rice'],
            'tasty' => ['chocolate', 'pistacio'],
    );
    print $food{tasty}[1]; # prints pistacio
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://445277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-16 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found