marctwo has asked for the wisdom of the Perl Monks concerning the following question:
I know this has been asked before but my question is slightly different.
I am parsing a file and, when it reaches a line containing a certain value, I want to pass the filehandle to a sub in a different module and contunue parsing the file from the line I left off at. When the sub is finished I then want to resume in the calling routine from the line the sub finished at.
Is this clear? Can it be done this way or is there a better way?
Many Thanks,
Marc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing filehandle to sub
by broquaint (Abbot) on Jun 09, 2003 at 11:03 UTC | |
by arthas (Hermit) on Jun 09, 2003 at 12:27 UTC | |
by broquaint (Abbot) on Jun 09, 2003 at 13:23 UTC | |
by Mr. Muskrat (Canon) on Jun 09, 2003 at 13:34 UTC | |
by sauoq (Abbot) on Jun 09, 2003 at 21:41 UTC | |
by bobn (Chaplain) on Jun 09, 2003 at 22:17 UTC | |
by marctwo (Acolyte) on Jun 09, 2003 at 13:19 UTC | |
|
Re: Passing filehandle to sub
by fsn (Friar) on Jun 09, 2003 at 11:31 UTC | |
by marctwo (Acolyte) on Jun 09, 2003 at 13:23 UTC | |
|
Re: Passing filehandle to sub
by Lachesis (Friar) on Jun 09, 2003 at 11:04 UTC |