c has asked for the wisdom of the Perl Monks concerning the following question:
My burden at the moment is a script which calls $dir = `pwd`; I think this is something that you could find in a lot of code out there. After reading the post about use Cwd; I thought my issues were solved. However the following test code:
#!/usr/bin/perl -wT use strict; use Cwd; my $dir = cwd(); print "$dir\n";
ends up still complaining with:
Insecure $ENV{PATH} while running with -T switch at /usr/lib/perl5/5.0 +0503/Cwd.pm line 82.
Do I need a more current revision of Cwd or is this not the way to find your cwd using -T?
humbly -c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Taint checking with Cwd();
by rob_au (Abbot) on Aug 06, 2001 at 08:31 UTC | |
by isaac32767 (Initiate) on Jan 21, 2004 at 05:13 UTC | |
|
(crazyinsomniac) Re: Taint checking with Cwd();
by crazyinsomniac (Prior) on Aug 06, 2001 at 08:28 UTC |