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

Re^4: reading the hash information from a file

by dsheroh (Monsignor)
on Feb 16, 2007 at 15:50 UTC ( [id://600460]=note: print w/replies, xml ) Need Help??


in reply to Re^3: reading the hash information from a file
in thread reading the hash information from a file

Of course, if you're going to go that route, you could leave off the first and last lines (i.e., don't bother making it a package) and require the file. The required file does still have to be valid perl (such as an assignment statement) and I find it preferable to declare the variables which it sets in the main program rather than in the required file, but this basic technique generally works pretty well for reading in configuration data and the like, provided you can trust the file you're reading in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found