Harry Putnam wrote:
"Joseph L. Casale" <jcas...@activenetwerx.com> writes:
Is it required to manually close a file handle I used
to write debugging info to when the Perl scripts exits?
Seems like a waste of effort at the end of the script to
test `if debug...` and close the fh after?
Not required no... that is, it won't cause an error, but I think many
folks here will say you should do it... after all its only a tiny
amount of effort.
You should always close the file handle and check for errors. Otherwise
you won't know about them. This applies to both input and output.
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
I like Perl; it's the only language where you can bless your
thingy.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/