Doesn’t such a method make the behavior of a programming language unpredictable?
Not if perl is sure that the situation allows optimizing out.
I would blindly assume that all returns could be optimized out in this script:
sub foo { # do something return; } sub bar { # do something return 'a scalar'; } sub baz { # do something return qw( a list ); } foo(); bar(); baz(); exit();
Alexander
In reply to Re^4: Hash (not) returned by subroutine
by afoken
in thread Hash (not) returned by subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |