If you do this, you must use parentheses to call the "error" function.open FH, ">$file" or error("msg"), return undef;
In reply to Re^2: calling sub and returning value from the same line
by dpuu
in thread calling sub and returning value from the same line
by mellin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |