It's not
$PATH, but the variable. $PATH is only relevant for executables (used with
system, backticks or piped
open).
Did you sanitize $thumbName? see perlsec, section Laundering and Detecting Tainted Data.
Try something like
$thumbName = ($thumbName =~ /^([-\@\w.\/]+)$/) ? $1 : undef;
if($thumbName) {
open( NEWIMG, "+>$thumbName" ) or croak "Can't open new imagefile:
+ ($thumbName) $! \n";
}
That should do.
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}