As a temporary workaround until the bug is fixed, the following seems to 'cure' it and I can't see any other side effects:
sub bar { if (@_) { return my $x = do { my $dummy; 1; }; } return 0; }
In reply to Re: Bad return value from a block with variable localization
by BrowserUk
in thread Bad return value from a block with variable localization
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |