Better:
sub whether_subroutine() { my @results; if( ! eval { @results= weather_subroutine(@_); 1 } ) { warn $@; return; } return @results; }
- tye
In reply to Re: Best way to replace 'die' with 'warn' (no __DIE__)
by tye
in thread Best way to replace 'die' with 'warn'
by puterboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |