http://qs321.pair.com?node_id=305225


in reply to Re: desire to pass file handles by value
in thread desire to pass file handles by value

Thanks for the help. For now, I'm going to record the orignal file position on entry to the sub & restore it on exit.

#... my $pos=tell(FH); #... seek(FH,$pos,0); return

The file handle duplicating thing looks interesting though...

update: fixed dumb semantic error