in reply to Re: How ti include a file in Perl script
in thread How ti include a file in Perl script
And then a bad, bad person comes along and edits your config file to read:
foo => 'bar', something => 'whatever'; `rm -rf /`;
Ouch.
Using a Config module as suggested above is safer, and in many cases just as easy.
If you need to use perl config files, you may be able to buy yourself some safety by using Opcodes or Safe.
TGI says moo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How ti include a file in Perl script
by Saladino (Beadle) on Jan 11, 2008 at 08:15 UTC | |
by TGI (Parson) on Jan 11, 2008 at 16:20 UTC |