Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Round robin processing

by 1nickt (Abbot)
on Sep 09, 2019 at 22:09 UTC ( #11105915=note: print w/replies, xml ) Need Help??


in reply to Round robin processing

Hi, see Tie::Cycle.

$ perl -MTie::Cycle -E 'tie $i, Tie::Cycle, [0..3]; push @{ $h{$i} }, +$_ for 1..12' $VAR1 = { '2' => [ 3, 7, 11 ], '1' => [ 2, 6, 10 ], '0' => [ 1, 5, 9 ], '3' => [ 4, 8, 12 ] };

Hope this helps!


The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2019-10-20 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?