Help for this page

Select Code to Download


  1. or download this
    #\E not necessary at end of pattern
    /^\Q$string/ and print "A match!\n";
    ...
    #or, same thing
    $string=quotemeta $string;
    /^$string/ and print "A match!\n";