in reply to Re: Use global flag when declaring regular expressions with qr?
in thread Use global flag when declaring regular expressions with qr?
Good job catching that if ( $row =~ /$re/g ) doesn't make sense. But the solution to finding all matches is replacing the if with a while, not adding "c".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use global flag when declaring regular expressions with qr?
by ysth (Canon) on Oct 28, 2024 at 16:29 UTC |