But I don't remember why I thought it might be better. Certainly not from readability! What do others think of this kind of double-checking?for (@users) { my $success = eval { add_account($_); }; if($@ or not $success) { warn "Can't add user '$_': $@" }
In reply to Re^2: Dealing with errors in subroutines
by Boldra
in thread Dealing with errors in subroutines
by walkingthecow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |