Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Random_Walk (Prior)
on Apr 06, 2005 at 12:26 UTC ( #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? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2021-12-07 00:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (33 votes). Check out past polls.

    Notices?