Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: hashes of arrays

by Tortue (Scribe)
on Apr 03, 2001 at 23:37 UTC ( #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? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2022-08-16 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?