Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-04-25 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (477 votes), past polls