in reply to Flip flop operator
You exhaust <> in your first pass. Unfortunately, you can't seek in tty STDIN, so you'll need to invert your logic, making all your comparisons in a single pass of <>. I don't think your range operators will take the same form in that rewrite.
If you mean to iterate over a seekable handle, you'll still probably be better off to only read once.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Flip flop operator
by ysth (Canon) on Aug 19, 2004 at 13:22 UTC | |
|
Re^2: Flip flop operator
by sashac88 (Beadle) on Aug 19, 2004 at 08:19 UTC | |
by gellyfish (Monsignor) on Aug 19, 2004 at 11:23 UTC |