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.
In reply to Re: Advantage of while(<>){while()}?
by ikegami
in thread Advantage of while(<>){while()}?
by Argel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |