Re: trouble merging files using nested loop to read files
- From: Joe Smith <joe@xxxxxxxxx>
- Date: Sun, 15 Oct 2006 01:33:38 -0700
theshowmecanuck (BillR) wrote:
Now I need to find a way to move the file pointer back one record when I
need to. :-)
The example at the end of
perldoc -f seek
shows how it is done. Just keep track of what the current position
was before the read that went to far.
Or write a routine to read_a_line() and one to unread_a_line().
Make the latter put a string into a global variable, and the
former return the content of that variable (instead of reading
input) if the variable is set.
-Joe
.
- Follow-Ups:
- Re: trouble merging files using nested loop to read files
- From: theshowmecanuck
- Re: trouble merging files using nested loop to read files
- References:
- Re: trouble merging files using nested loop to read files
- From: Mumia W. (reading news)
- Re: trouble merging files using nested loop to read files
- From: theshowmecanuck
- Re: trouble merging files using nested loop to read files
- From: Jürgen Exner
- Re: trouble merging files using nested loop to read files
- Prev by Date: Re: problems appending an entry to a logfile
- Next by Date: Re: alarm() - SIGALRM sent too eariy?
- Previous by thread: Re: trouble merging files using nested loop to read files
- Next by thread: Re: trouble merging files using nested loop to read files
- Index(es):