in reply to Re^2: how to use string RE (against $_ and capture)
in thread how to use string RE (against $_ and capture)
... how, after "$re_str" has been stringified, would the code know the string is meant to be used as a regexp instead of a direct compare.
The code "knows" because the string is used by a =~ m// s/// (I think that's all of them) matching operator. And what's a "direct compare" anyway?
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to use string RE (against $_ and capture)
by perl-diddler (Chaplain) on Nov 08, 2016 at 04:30 UTC | |
by AnomalousMonk (Archbishop) on Nov 08, 2016 at 05:21 UTC | |
by dave_the_m (Monsignor) on Nov 08, 2016 at 08:54 UTC |