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.
dup? (Score:2)
Re:dup? (Score:2)
Thanks,
-Dom
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
Re: (Score:2)
EndDocument()is called.-Dom
Re: (Score:1)
Re: (Score:2)
-Dom