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

Re: Processing pairs of values from even-sized array

by AnomalousMonk (Archbishop)
on Jun 03, 2011 at 12:30 UTC ( [id://907962]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(@arr) {
        my ($x,$y) = (shift(@arr), shift(@arr));
        ...
        }
    
  2. or download this
    use List::MoreUtils qw(natatime);
    ;;
    ...
    while (my ($x, $y) = $it->()) {
        ...
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found