Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perlplexation - foreach shoulda Known

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

Help for this page

Select Code to Download


  1. or download this
    my $i = 0;
    foreach my $element (@array) {
        do_something($element) unless ($i++ % 3);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://964980]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-05-21 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?