in reply to opened file being overwritten
"..why isnt the filehandle FILE4 being printed out.." Because when the subroutine finishes the filehandle also closes. Please also check that this in your code open FILE4,"$_[3]" || die "could not open $_[3]"; which has no ">" like the others.
bart you are right, I missed that.
Simply using strict and warnings would have indicated the problems.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: opened file being overwritten
by bart (Canon) on Dec 13, 2012 at 20:38 UTC | |
Re^2: opened file being overwritten
by perishowl (Initiate) on Dec 13, 2012 at 20:50 UTC | |
by perishowl (Initiate) on Dec 13, 2012 at 20:59 UTC |