in reply to Setting $! in xs

Don't, that is not the purpose of $!, simply croak instead

Replies are listed 'Best First'.
Re^2: Setting $! in xs
by Anonymous Monk on Aug 06, 2011 at 14:38 UTC
    Well, if you still wanted to, you could
    sv_setpvf( get_sv("!", TRUE), "blah %d %s", errno, strerror(errno) );