in reply to Advantage of while(<>){while()}?
That would make the two roughly equivalent, right?
Again, it can result in drastically different matches. Consider a poor man's CSV parser, «$regex = qr/[^,]*/;». A file with lines foo,far and boo,bar has four fields (over two lines) using one and three fields using the other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Advantage of while(<>){while()}?
by Argel (Prior) on May 18, 2011 at 22:21 UTC | |
by ikegami (Patriarch) on May 18, 2011 at 22:24 UTC | |
by Argel (Prior) on May 18, 2011 at 22:32 UTC |