in reply to Re: Yet another Taint question
in thread Taint and Mail::Mailer

Hmm, not sure I see the difference. Doesn't the delete only delete the matching environment variables? If so, it doesn't affect the path. Right? Sort of? Not?

Keep in mind that I copied these lines from perldoc perlsec and I'm not really sure how the delete is working. I know why the lines are there, and I know what the $ENV{'PATH'} = '/bin:/usr/bin:/sbin'; does. Just not the delete.

Replies are listed 'Best First'.
Re^3: Yet another Taint question
by Zaxo (Archbishop) on Jun 26, 2004 at 05:24 UTC

    Ahhrgh, you're correct, I'm accustomed to deleting $PATH before assignment and thought you meant the same. Sorry.

    After Compline,
    Zaxo

      Not a problem at all. I always prefer to understand the code I'm using, and I've found that the best way to understand something is to try to explain it. I don't know how many times in code reviews I've had someone question why I did something a particular way, and I've always found it to be beneficial.