hotshot has asked for the wisdom of the Perl Monks concerning the following question:
and about cleaning the path, I never had to do this before with perl functions (always with system commands), does something like the followings is good ?:if ($path =~ /^([-\@\w.\/\s]+)$/) { $path = $1; } else { die "Bad path in $path"; }
thanks$ENV{PATH} = '/usr/lib/perl5/5.6.1/File/';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Insecure dependency
by davorg (Chancellor) on Nov 19, 2001 at 17:46 UTC | |
|
Re: Insecure dependency
by rob_au (Abbot) on Nov 19, 2001 at 17:41 UTC | |
by davorg (Chancellor) on Nov 19, 2001 at 18:10 UTC | |
by hotshot (Prior) on Nov 19, 2001 at 22:28 UTC |