Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 monks are mute...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2017-09-25 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (279 votes). Check out past polls.

    Notices?