"Exiting eval via next" [perl v5.14]

Jérôme Étévé jerome.eteve at gmail.com
Fri Nov 4 16:52:37 GMT 2011


>
>
> # why no error?!
> $ perl -M5.14.0 -wle 'for my $i (qw/foo/) { eval { $i.=q{}; next; }; } say
> "done"'
> done
>
> Just a wild guess: There's an optimization that detects it's a no-op?

-- 
Jerome Eteve.

http://sigstp.blogspot.com/
http://twitter.com/jeteve


More information about the london.pm mailing list