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 about the Monastery: (12)
As of 2015-03-06 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (171 votes), past polls