R
rusland
Hello !
I need to know return value from try block in finally block.
For example, I have code like this
try {
code 1...
return x1 if ...
code 2...
return x2 if ...
etc...
}
finally {
my $ret = $how_to_get_return_value_from_try_block; #?
};
So finally block not only for exception processing, but also
for processing of return code from try block.
Is any build into perl mechanisms to let this value know
in finally block? I study man page of Error.pm and not found
any such possibility.
I need to know return value from try block in finally block.
For example, I have code like this
try {
code 1...
return x1 if ...
code 2...
return x2 if ...
etc...
}
finally {
my $ret = $how_to_get_return_value_from_try_block; #?
};
So finally block not only for exception processing, but also
for processing of return code from try block.
Is any build into perl mechanisms to let this value know
in finally block? I study man page of Error.pm and not found
any such possibility.