in reply to Re: Different behaviour of 'stat' function after assignment to $! (errno).
in thread Different behaviour of 'stat' function after assignment to $! (errno).

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.

  • Comment on Re^2: Different behaviour of 'stat' function after assignment to $! (errno).