Help for this page

Select Code to Download


  1. or download this
    if( $str =~ tr/_/_/ ) {
        print "with underscore\n";
    } else {
        print "no underscore\n";
    }
    
  2. or download this
    my $result = 
          ( $str =~ tr/_/_/ )
    ...
        : "no ";
    
    print "$result underscore\n";