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

Re^2: Processing pairs of values from even-sized array

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


in reply to Re: Processing pairs of values from even-sized array
in thread Processing pairs of values from even-sized array

my $array = { @array };

This will 'randomize' (or 'hash-ize'?) the order of elements in the array, and  %{{@array}} likewise. Update: Oops:  each %{{@arr}} has another, entirely different, fatal (or should I say immortal?) flaw!

Replies are listed 'Best First'.
Re^3: Processing pairs of values from even-sized array
by Bloodnok (Vicar) on Jun 03, 2011 at 13:43 UTC
    I suppose that depends on whether the pairs have to pulled from the list in the same order in which they appear in the list ... which altho' implied, isn't, AFAICT, specified in/by the OP.

    Ooops, my mistake, it _is_ specified : 'This array should be processed left-to-right...'

    A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found