in reply to Re: help with lazy matching
in thread help with lazy matching
++ 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: help with lazy matching
by AnomalousMonk (Archbishop) on Jan 05, 2015 at 23:09 UTC |