Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs? (ugly++)

by smls (Friar)
on Sep 27, 2013 at 09:37 UTC ( #1055950=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $person (@people) {
      ## ...
    ...
      ## potentially be refactored into nested loops in the future, etc.
      ## ...
    }
    
  2. or download this
    say $_->{name} foreach @people;
    
  3. or download this
    $age_sum += $_->{age} foreach @people;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-08-30 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls