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


in reply to Re: Easy one for my fellow Monks
in thread Easy one for my fellow Monks

If you are doing several metachars you can also use \Q to quote your metachars.

$var =~ s#\Q(#,(#;
or
$var =~ s#\Q([]\E#/meta/;


/Q will quote all the metachars it sees in a regex until \E.