in reply to RE: RE: Re: Using perl to automate mail backup
in thread Using perl to automate mail backup
Oppps! I didn't even realize that the directory gets reset when the program exits. All my other experience programming in the dos environment ( masm, turbo pascal ) you had to save the path and restore it when you exit or you would be left in the last directory your program set.
That solves that problem. I can remove that section of code and use taint checking.
I had looked at the Cwd module, but its implementation is the same:
Taken from Cwd.pm
sub _backtick_pwd { my $cwd; chop($cwd = `pwd`); $cwd; }
And the working directory returned is tainted.
zzspectrez
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: RE: Re: Using perl to automate mail backup
by Fastolfe (Vicar) on Nov 13, 2000 at 08:55 UTC |