Don't ask to ask, just ask | |
PerlMonks |
Re^2: Flip-flop reset?by swkronenfeld (Hermit) |
on Aug 29, 2006 at 20:14 UTC ( [id://570239]=note: print w/replies, xml ) | Need Help?? |
The problem is not that a newline is not present, it is that (in the above case) the last line is 17: 5450 :0:0 19: 5453 :0:0 20: 14626 :0:0:D There is not another line afterwards, but I have no text clues that that is the last line containing process information. Here is two input samples, to hopefully make this more clear than my explanation. (The lines of hyphens are delimiters, and they are not in my input). So there can be more random junk that I don't want to include after the process list that I'm looking at. In that case, my flip flop works, however when my input ends abruptly, without the extra blank line, I don't have a way of resetting it. Like I said above, I can just keep track of the state in a scalar, maybe that is the better way to do it. I just thought that there may be a different solution.
In Section
Seekers of Perl Wisdom
|
|