++ on this comment, except that I don't think you need to escape the slash inside the negated character class. You can just write [^/] .
Also (for the original post), you can leave out the '$_ =~' from your if statement if you want. Since there is no explicit variable in your while loop test, the if statement will match $_ by default.
In reply to Re^2: help with lazy matching
by nlwhittle
in thread help with lazy matching
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |