develooper Front page | perl.perl5.porters | Postings from May 2012

unexpected: Can't "goto" out of a pseudo block

Thread Next
From:
Dave Mitchell
Date:
May 4, 2012 08:02
Subject:
unexpected: Can't "goto" out of a pseudo block
Message ID:
20120504150233.GC3008@iabyn.com
    $ perl5159 -e'@a = sort { goto FOO; FOO: $a <=> $b } 1,2,3'
    Can't "goto" out of a pseudo block at -e line 1.
    $

I'd expect this this code to execute ok. Can anyone think of a reason why
it isn't a bug?

(Discovered while adding tests for /(?{ ... do strange things ... })/ ).


-- 
Monto Blanco... scorchio!

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