in reply to Pod::Usage and Taint Mode

Howdy!

Off the top of my head, I'd suspect $ENV{PATH} as the offending item. I'd try setting $ENV{PATH} (possibly to '' unless you need it elsewhere) to some fixed value to untaint it.

yours,
Michael

Replies are listed 'Best First'.
Re^2: Pod::Usage and Taint Mode
by ghenry (Vicar) on May 26, 2006 at 13:09 UTC

    Nah, that's already been done ;-)

    Here are some quick read links:
    Pod docs
    Syntax highlighted HTML

    For reference, here is the complete program:

    The --man option is the only thing left to fix.

    Thanks,
    Gavin.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!

      > The --man option is the only thing left to fix.

      Excuse me for reviving the thread but I had the same problem today and found a working solution elsewhere on the web that I would like to appear here:

      pod2usage({-verbose => 2, -input => \*DATA});

      or, if called inside a package

      pod2usage({-verbose => 2, -input => \*::DATA});

        Cheers!

        Walking the road to enlightenment... I found a penguin and a camel on the way.....
        Fancy a yourname@perl.me.uk? Just ask!!!