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

Re: how to push 5th element from one array to another array

by ctilmes (Priest)
on Oct 27, 2009 at 20:14 UTC ( #803511=note: print w/replies, xml ) Need Help??


in reply to how to push 5th element from one array to another array

my @arr = qw(1 2 3 4 5 6 7 8 sd frd sed sddfsd asecf ssdd myh); my $i = 1; my @arr2 = grep { $i++ % 5 == 0 } @arr;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://803511]
help
Chatterbox?
[ambrus]: Corion: schmorp points out https://metacpan. org/pod/release/ KARASIK/Prima-1. 49/pod/Prima/File. pod,
[ambrus]: so there's an IO waiter (Prima::File) and a timer (Prima::Timer) maybe it's possible to write an AnyEvent loop driver over it, a saner one than POE

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2016-12-07 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (130 votes). Check out past polls.