in reply to Taint mode errror

Set the $ENV{PATH} to a hardcoded (or at least, untainted) value. eg: $ENV{PATH} = "/bin:/usr/bin";

Sure, what you're doing doesn't use $ENV{PATH} at all, but Perl doesn't know that.

Forging your own path does not mean that you should avoid asking for directions.

Replies are listed 'Best First'.
Re: Re: Taint mode errror
by halley (Prior) on Apr 08, 2004 at 12:59 UTC
    If you're going to execute things with absolute paths (`/bin/foobar`), you might be able to get away with no path (undef $ENV{PATH}). The executed process will have to be explicit in any nested exec/system call, but that's arguably a good thing.

    --
    [ e d @ h a l l e y . c c ]

Re: Re: Taint mode errror
by Anonymous Monk on Apr 08, 2004 at 01:35 UTC
    Thanks, that did the trick :-)