in reply to Print on closed filehandle

open OUT, ">".$self->get_csv() || die "Could not open file ".$self->get_csv(). " for writing!";
Change the '||' to an 'or'. The latter version has low precedence.

Dave.

Replies are listed 'Best First'.
Re^2: Print on closed filehandle
by PerlingTheUK (Hermit) on Jul 15, 2004 at 13:26 UTC
    Oops, well that works fine, thank you.