Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 chanting in the Monastery: (2)
As of 2016-07-30 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (265 votes). Check out past polls.