Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How to save first two columns of an array into another array

by zing (Beadle)
on Oct 02, 2012 at 14:05 UTC ( #996863=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %h;
    my @a = map { [@{ $_ }[0]] } @S;
    ...
    print Dumper(%h);
    print "or\n";
    print Dumper(\%h);
    
  2. or download this
    $VAR1 = {
              'ARRAY(0x8411210)' => [
    ...
                                      'c'
                                    ]
            };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-08-21 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls