my $value = '$100'; if( index($value, '$') > -1) { print 'found "$" in $value'; } else { print 'no "$" in $value'; } __output__ found "$" in $value