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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2018-12-11 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (52 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!