Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Splitting arrays

by BillKSmith (Monsignor)
on Jun 04, 2013 at 13:43 UTC ( [id://1036979]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %location_data;
    foreach  (@values) {
    ...
        push @{$location_data{lat}}, $val[0];
        push @{$location_data{lon}}, $val[1];
    }
    
  2. or download this
    my @locations = [map {split /,/, $_]} @values;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found