in reply to Debugging a module that's failing under taint mode
Is there some reason you can't run the code under the debugger or, even better, use an IDE such as Komodo? You can require the module instead of useing it so you can debug the load process.
But really, you need to untaint $RealBin. Something like:
BEGIN { use FindBin qw($RealBin); my ($cleanPath) = $RealBin =~ m/(some sane path match here)/; use lib $FindBin::Bin; }
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Debugging a module that's failing under taint mode
by Bod (Parson) on Jul 01, 2021 at 22:45 UTC | |
by GrandFather (Saint) on Jul 02, 2021 at 14:38 UTC |
In Section
Seekers of Perl Wisdom