http://qs321.pair.com?node_id=1102883


in reply to Can't find list of metacharacters

Consider the following:

use strict; use warnings; local $_ = q{<>^}; for my $i (qw(<> >^)) { /\Q$i/p and print "${^MATCH}\n"; }

Output:

<> >^

Remember that "^" can also be used to negate a class match in addition to denoting a match at the beginning of a line, e.g., /^[^aeiou]/i (no vowels at the beginning of a line). Both "<" and ">" are metacharacters. See this Extended regex sequences section.

Hope this helps!

Replies are listed 'Best First'.
Re^2: Can't find list of metacharacters
by rsFalse (Chaplain) on Oct 05, 2014 at 20:15 UTC
    Thanks