$somename = 'David Nesting'; $someaddress = 'david@example.com'; $_ = 'David Nesting '; if (/^$somename <$someaddress>$/) { print "Yep, this one is $somename!\n"; }