in reply to Should I escape all chrs in a regex?

You can use quotemeta or \Q \E regex escapes to be sure, like this:
my $match = quotemeta('tftp>'); if ($str =~ /$match/) { ... }
or
my $match = 'tftp>'; if ($str =~ /\Q$match\E/) { ... }
or using the value directly
if ($str =~ /\Qtftp>\E/) { ... }