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

Re: Config file help

by Adrade (Pilgrim)
on Jun 23, 2005 at 23:10 UTC ( #469557=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use DB_File;
    ...
    $hash{'thisvar'} = param('webvar'); # modifies from form value
    
    untie %hash;
    
  2. or download this
    $filename = '/path/to/config/file';
    open(CONF,"<$filename");
    while(<CONF>){
    ...
    open(CONF, ">$filename");
    print CONF "$_\t$config{$_}\n" for keys %config;
    close(CONF);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-07-13 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (250 votes), past polls