Skip to content

String match against $! #234

@eserte

Description

@eserte

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions