|XP is just a number|
Reading entire file.by stuffy (Monk)
|on May 04, 2001 at 09:58 UTC||Need Help??|
stuffy has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, it's me again, and I'm still working on the same script that I have posted about previously. I am to the point where everything is working, except my script is only reading the first 200-205 lines of my 1800 line text file. My question is simple. When using :
The file contains a list of equipment, and comments that someone has put in about the equipment for the day. I am sorting all comments by equipment number...eg.
Apr 23 2001 0630
Tool01 - ran good
Tool02 - replaced inner bearing
Apr 24 2001 2330
Tool01 - Broke spindle temp transducer
waitin on replacement
Tool02 - Did not run today
I have it set up to start printing when it sees the first tool I am looking for, and stops when it sees the next one. It does this fine, except it stops in the middle of the file. I set up a counter to see what line it goes to, and it is usually line 204. This is a different point in the file depending on what date I put in for the start. In other words, it stops on about the same line every time, but the content of that line is different almost every time. I am not able to post the actual file due to the nature of my work, but I quess I actually have two questions. Is ther an easier way to test and print between two points in a file, and how can I make sure that it will scan the entire file each time. Stuffy Welcome to the life of the perpetually confused.