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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: desire to pass file handles by value
by jdporter (Paladin) on Nov 07, 2003 at 05:44 UTC | |
by ysth (Canon) on Nov 07, 2003 at 09:52 UTC | |
by jdporter (Paladin) on Nov 07, 2003 at 16:29 UTC |
In Section
Seekers of Perl Wisdom