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
In reply to Re^2: Different behaviour of 'stat' function after assignment to $! (errno).
by ikegami
in thread Different behaviour of 'stat' function after assignment to $! (errno).
by muxxum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |