Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 examining the Monastery: (8)
As of 2015-07-04 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls