in reply to Should I escape all chrs in a regex?
my $match = quotemeta('tftp>'); if ($str =~ /$match/) { ... } [download]
my $match = 'tftp>'; if ($str =~ /\Q$match\E/) { ... } [download]
if ($str =~ /\Qtftp>\E/) { ... } [download]