NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: (Score:1)
I think it's worthwhile to think about what should happen if someone passes you a Perl filehandle, then closes it before
EndDocument().What would happen with a duped filehandle? Would the duped one stay open if the original one gets closed?
I think that it should behave the way a pure-Perl module mostly like would: closing the filehandle closes it out from under the module, too. The duping behaviour seems safer, but I worry that this “safety” net could veil bugs in client code, in which case I'd prefer dumb behaviour that blows up in a user's face as soon as they do something stupid.
Reply to This
Re: (Score:2)
EndDocument()is called.-Dom
Re: (Score:1)
Re: (Score:2)
-Dom