rsFalse has asked for the wisdom of the Perl Monks concerning the following question:
...and wanted to have 2 answers, but got only 1. It seems that I need to use \Q$i\E, why? "^" is not at the beginning of regex. And it seems that <> characters are quoted, if I use quotemeta, but why they are meta?$_=q{<>^}; for $i qw(<> >^){ /$i/ and print "$&\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't find list of metacharacters
by Kenosis (Priest) on Oct 05, 2014 at 19:51 UTC | |
by rsFalse (Chaplain) on Oct 05, 2014 at 20:15 UTC | |
|
Re: Can't find list of metacharacters
by LanX (Saint) on Oct 05, 2014 at 20:47 UTC | |
|
Re: Can't find list of metacharacters
by ikegami (Patriarch) on Oct 06, 2014 at 05:59 UTC | |
by rsFalse (Chaplain) on Oct 24, 2014 at 20:06 UTC | |
|
Re: Can't find list of metacharacters
by Anonymous Monk on Oct 05, 2014 at 22:06 UTC |