RE: parsing text files ...

2003-02-27 Thread Jattie van der Linde
Jamie, first of all I would read the file from top to bottom and then reverse my array to change the order of the entries. Then on every line that you read back I would do a comparison to check if I reached the piece of code you talked about that references the end of the input. I'd use fore

RE: parsing text files ...

2003-02-26 Thread Hanson, Rob
> is there a way to tell the program to > "read until you see this line and > place everything you have read up to > that line into @array" # yes. my @lines = (); open IN, "somefile" or die $!; while () { last if /some_match/; pusdh @lines, $_; } close IN; > could this start at the bottom of