Do you know where your variables are? | |
PerlMonks |
Re^3: Use function as a regexby Eily (Monsignor) |
on Feb 15, 2018 at 17:17 UTC ( [id://1209244]=note: print w/replies, xml ) | Need Help?? |
I don't see any connexion between :lvalue and /g. $str =~ ${re()} isn't a global search but the output of qr is already a reference so /${re()}/g works, as pointed out by salva.
In Section
Seekers of Perl Wisdom
|
|