The line https://metacpan.org/dist/Devel-NYTProf/source/lib/Devel/NYTProf/Reader.pm#L138 currently reads
confess "Unable to create directory $dir: $!\n" if $! !~ /exists/;
Using string matches against $! is problematic if the current process is running under a non-English locale (probably only the case for older perls). Better to use something like $!{EEXIST} or so.
I did not check the whole code, maybe there are more problematic places.
The line https://metacpan.org/dist/Devel-NYTProf/source/lib/Devel/NYTProf/Reader.pm#L138 currently reads
Using string matches against
$!is problematic if the current process is running under a non-English locale (probably only the case for older perls). Better to use something like$!{EEXIST}or so.I did not check the whole code, maybe there are more problematic places.