in reply to Re^2: eval segfaults when $@ isn't writable
in thread eval segfaults when $@ isn't writable

The $! = 1; fragment was just to demonstrate the dual value magic - compare to the example before that.

After Compline,
Zaxo

  • Comment on Re^3: eval segfaults when $@ isn't writable

Replies are listed 'Best First'.
Re^4: eval segfaults when $@ isn't writable
by Hue-Bond (Priest) on Jul 04, 2006 at 15:42 UTC

    Then it isn't a typeglob assignment, and no magic is lost. This is the same code as yours, using errno 111 instead of 1:

    $ perl -e'$! = 111; print "$!\n"' Connection refused

    Either you were fooled by the "Operation not permitted" error (which is unlikely since it isn't a Perl error according to perldiag), or I still don't get your point.

    --
    David Serrano