On Jun 24, John W. Krahn said:

Prasad J Pandit wrote:
I'm a novice perl programmer and I'm trying to pass a
File-Handle to two different subroutines one after the
other as follows

Just use the scalar:

func_one($FH);
func_two($FH);

At the end of reading the file, if you want to rewind it, you need to write

  seek(FILEHANDLE, 0, 0);

to get back to the beginning.

--
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to