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
From:
Peter Martini via RT
Date:
February 28, 2013 07:05
Subject:
[perl #116981] 'our sub' segfaults perl if the sub did not compile
Message ID:
rt-3.6.HEAD-31961-1362035142-613.116981-14-0@perl.org
Digging into this, I also realize:

perl -Mfeature=lexical_subs -e 'my sub foo { foo(1);} foo;'
Undefined subroutine &main::foo called at -e line 1.

Is that intentional?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About