Change the '||' to an 'or'. The latter version has low precedence.open OUT, ">".$self->get_csv() || die "Could not open file ".$self->get_csv(). " for writing!";
Dave.
In reply to Re: Print on closed filehandle
by dave_the_m
in thread Print on closed filehandle
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |