Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Parsing a file with parentheses to build a hash

by RichardK (Parson)
on Nov 14, 2014 at 14:54 UTC ( [id://1107210]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Parsing a file with parentheses to build a hash
in thread Parsing a file with parentheses to build a hash

I'd use File::Slurp read_file, but there are lots of ways to do it.

use File::Slurp; my $text = read_file( $filename );

Replies are listed 'Best First'.
Re^4: Parsing a file with parentheses to build a hash (slurp it good)
by toolic (Bishop) on Nov 14, 2014 at 15:15 UTC
Re^4: Parsing a file with parentheses to build a hash
by xcellsior (Novice) on Nov 14, 2014 at 18:38 UTC
    2 lines vs 7 is always a good trade!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-03-29 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found