Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: hashes of arrays

by Tortue (Scribe)
on Apr 03, 2001 at 23:37 UTC ( [id://69440]=note: print w/replies, xml ) Need Help??


in reply to Re: hashes of arrays
in thread hashes of arrays

Another solution, since you said you wanted an array, is to read the file in array context, without changing the input line separator :
@{$hash{$_}{file_contents}} = <FILE>;
-- the array guy

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://69440]
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-20 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found