in reply to Use global flag when declaring regular expressions with qr?
(Internally, I believe this is able to just use the regular expression without having to recompile it.)if ($row =~ /$re/gc) {
You want the /c flag to not reset the match position on failure.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use global flag when declaring regular expressions with qr?
by ikegami (Patriarch) on Oct 28, 2024 at 15:43 UTC | |
by ysth (Canon) on Oct 28, 2024 at 16:29 UTC |