XP is just a number | |
PerlMonks |
Re^4: Print out an XML file to browserby virtualsue (Vicar) |
on Feb 20, 2007 at 06:26 UTC ( [id://601033]=note: print w/replies, xml ) | Need Help?? |
It isn't really necessary to bother about closing a read-only filehandle. If you want to be rigorous and check everything, then why aren't you checking whether the print statements succeed? :) If you were writing to the file, then I agree - close the filehandle and check to see if an error occurred.
In Section
Seekers of Perl Wisdom
|
|