Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: How to create a two dimensional queue in Perl

by Laurent_R (Canon)
on Aug 04, 2013 at 10:59 UTC ( [id://1047785]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @queue = ( [$action1, $action2, $action3], [$action4, $action1, $ac
    +tion3], ...);
    # or possibly;
    my @queue =  ( [1, 2, 3], [4, 1, 3]);
    # where [1, 2, 3] is a reference to an array of subscripts on an array
    + of actions defined somewhere else.
    
  2. or download this
    0  ARRAY(0x80359f90)
       0  1
       1  2
    ...
       1  3
       2  0
       3  9
    
  3. or download this
    my $action_ref = shift @queue;
    
  4. or download this
     print $_, " - " foreach @$action_ref; # prints: 1 - 2 - 3 -

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found