I think you probably meant something like...
my $foo = eval { bar->something() }; die $@ if $@; $foo;
Update:
s/with/within/
In reply to Re: eval and return values
by Bloodnok
in thread eval and return values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |