Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Sharing Configuration between Multiple CGI Scripts

by waswas-fng (Curate)
on Aug 08, 2002 at 15:26 UTC ( [id://188616]=note: print w/replies, xml ) Need Help??


in reply to Sharing Configuration between Multiple CGI Scripts (was: How difficult can)

I like to use the storable module for this, just do a:

use Storable; nstore \%table, 'configfile'; $hashref = retrieve('configfile');

seems to load very fast and works for most of my needs.

-Waswas
Edited to s/store/nstore/ as nstore creates a more portable format (config file across multiple platforms etc..)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found