Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: creating hashes recursively

by japhy (Canon)
on Jun 09, 2006 at 10:56 UTC ( [id://554468]=note: print w/replies, xml ) Need Help??


in reply to Re^2: creating hashes recursively
in thread hashes recursively

If you really have '<$path', that's your problem. Single quotes don't expand a variable. Better off to use the 3-arg form of open():
open my($log), "<", $path or die "can't open $path: $!"; while (<$log>) { ... }

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2024-04-19 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found