in reply to Re^3: Hash (not) returned by subroutine
in thread Hash (not) returned by subroutine
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
|
|---|