in reply to Saving application configuration to files
No-one has mentioned do... perldoc -f do
You might like to use "do" to read in a program configuration File. Manual error checking can be done this way:# read in config files: system first, then user for $file ("/share/prog/defaults.rc", "$ENV{HOME}/.someprogrc") { unless ($return = do $file) { warn "couldn't parse $file: $@" if $@; warn "couldn't do $file: $!" unless defined $return; warn "couldn't run $file" unless $return; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Saving application configuration to files
by pboin (Deacon) on Mar 30, 2004 at 20:22 UTC | |
by maa (Pilgrim) on Mar 31, 2004 at 06:25 UTC |