How can I tell Perl not to interpret meta-characters in $string such that I could say, for example:/^$string/;
... and have the effect be that $_ is left-anchor searched for the uninterpolated text literal "$foo"? Thanks.$string = "\$foo"; /^$string/;
In reply to Basic regex question by chaitins_omega
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |