in reply to Use global flag when declaring regular expressions with qr?
as I told you in the cb, better the question better answers.. and it happened :)
as was not mentioned you can also do:
# $opts = 'g'; DONT WORK # $rex = eval qq(qr/here/$opts);
See also: /o is dead, long live qr//! and Use global flag when declaring regular expressions with qr?
L*
UPDATED because it doesnt work with g ..sorry for the noise
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use global flag when declaring regular expressions with qr?
by ysth (Canon) on Oct 29, 2024 at 12:33 UTC | |
|
Re^2: Use global flag when declaring regular expressions with qr?
by ikegami (Patriarch) on Oct 29, 2024 at 11:29 UTC | |
|
Re^2: Use global flag when declaring regular expressions with qr?
by unmatched (Sexton) on Oct 29, 2024 at 12:07 UTC |