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

Re: How do I create a new array in memory?

by davorg (Chancellor)
on Jun 27, 2000 at 15:09 UTC ( [id://19979]=note: print w/replies, xml ) Need Help??


in reply to How do I create a new array in memory?

The other way to do it is to take a copy of the array each time by using the anonymous array constructor.

while (<>) { my @record = split /,/; my $key = shift @record; $list{$key} = [@record]; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-16 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found