http://qs1969.pair.com?node_id=601033


in reply to Re^3: Print out an XML file to browser
in thread Print out an XML file to browser

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.