Welcome to the Monastery | |
PerlMonks |
rewinding filehandle/line skipping ?by Anonymous Monk |
on Jun 10, 2002 at 10:04 UTC ( [id://173062]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hello, I have written to a file and would like to then read from the top of that file. How do I rewind a file to the beginning ? Also I have a problem with a while loop...here is the code I am reading through my DATA2 file and printing to DATA3. The problem is, for some reason the program is skipping every other line in DATA2. (I have checked DATA2 is what I expected it to be). At the print $line command only every other line is printed. Any ideas why ? Thanks
Back to
Seekers of Perl Wisdom
|
|