my $target_name = 'the quick brown fox'; $_ = 'the quick brown fox jumps over the lazy dog'; if ($_ !=~ [$target_name]) { print 'ok' } Argument "�›¡¡�›ª╫╧ç╬╩Ü₧╠╞╧╓" isn't numeric in numeric ne (!=) at ... Argument "the quick brown fox jumps over the lazy dog" isn't numeric in numeric ne (!=) at ...