in reply to Re: Different behaviour of 'stat' function after assignment to $! (errno).
in thread Different behaviour of 'stat' function after assignment to $! (errno).
Writing to errno both directly and via $! aren't new, and there's no need to avoid doing so.
$ perl -E'say $!=2' No such file or directory $ perl -E'say $!=3' No such process $ perl -E'say $!=4' Interrupted system call
|
|---|