Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Perlplexation - foreach shoulda Known

by MonkOfAnotherSect (Sexton)
on Apr 18, 2012 at 06:47 UTC ( #965650=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perlplexation - foreach shoulda Known
in thread Perlplexation - foreach shoulda Known

eyepopslikeamosquito writes:
Curiously, this is very easy in Python...
And Riales's task too: remember -- slices win ;-)
for elem in some_iterable[::3]: do_something(elem)
Then again, I'd argue that it's really not so curious given how much iteration support/use/avoidance is baked-in (iterator and sequence protocols, generators, comprehensions, slices, etc).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965650]
help
Chatterbox?
usemodperl can see the monastery has become a rehab for children of the serpent :-)
usemodperl can't figure out how to get metacpan.org to comply with HTTP standards :-( HTTPS only!? Breaks older HTTP::Tiny...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-06-24 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?