in reply to Switch/Format to not interpret metacharacters in regex?

if ($b =~ /\Q$a\E/)

Replies are listed 'Best First'.
Re^2: Switch/Format to not interpret metacharacters in regex?
by mis (Initiate) on Dec 04, 2019 at 01:44 UTC
    Thank you! (knew it was there somewhere but couldn't spot it reading perlre.. hangover doesn't help. :D )