This was a toy example. -$! is returned from a perl callback for which it makes sense to return a negated errno back to C. Unfortunately, strange bugs started to pop up under FreeBSD, and this issue could be related to it.
Thanks everyone for helping.
In reply to Re^2: Different behaviour of 'stat' function after assignment to $! (errno).
by muxxum
in thread Different behaviour of 'stat' function after assignment to $! (errno).
by muxxum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |