Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Re: another 'array to hash' question

by allolex (Curate)
on Dec 10, 2003 at 15:15 UTC ( [id://313738]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @a;
    while (<INFILE>) {
      my @line = split /\t/;
      push @a, \@line; # Array of array references
    }
    
  2. or download this
    my @a;
    push @a, ( split /\t/ ) while (<INFILE>); # array of arrays
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-28 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found