Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Perlplexation - foreach shoulda Known

by Riales (Hermit)
on Apr 13, 2012 at 22:04 UTC ( #965005=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (0 .. 10) {
        my $outer_elem = $_;
    ...
            do_something($outer_elem, $inner_elem);
        }
    }
    
  2. or download this
    foreach my $elem1 (@array1) {
        my $outer_idx = $.;
    ...
            # Blablabla...
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-28 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls