develooper Front page | perl.perl5.porters | Postings from February 2013

[perl #116981] 'our sub' segfaults perl if the sub did not compile

Thread Previous | Thread Next
Peter Martini via RT
February 28, 2013 10:10
[perl #116981] 'our sub' segfaults perl if the sub did not compile
Message ID:
Patch attached to make our sub behave a little better in the case of
syntax errors.

If an entry is found in the pad, but that gv is NULL, simply pretend
that it wasn't found at all.

Tests added; they behave the same way whether the subs are declared as
"sub" or "our sub".

Review appreciated, since my modus operandi right now is mainly poke it
and see if I can make it break.

All tests successful.
u=17.70  s=4.68  cu=1141.10  cs=77.78  scripts=2311  tests=618983

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About