Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Selectively iterate through an array

by kennethk (Abbot)
on Mar 14, 2013 at 15:57 UTC ( [id://1023495]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @input = qw(0:6
    0:12
    0:18
    ...
        my ($key, $value) = split /:/;
        push @{$link{$key}}, $value;
    }
    
  2. or download this
    $VAR1 = {
              '6' => [
                       '12',
    ...
                        '24'
                      ]
            };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found