Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w --
    $s = '-abcdefgh'; $s =~ tr/abc//cd; print "s = '$s'\n";
    $s = '-abcdefgh'; $s =~ tr/a-c//cd; print "s = '$s'\n";
    $s = '-abcdefgh'; $s =~ tr'abc''cd; print "s = '$s'\n";
    $s = '-abcdefgh'; $s =~ tr'a-c''cd; print "s = '$s'\n";
    
  2. or download this
    s = 'abc'
    s = 'abc'
    s = 'abc'
    s = '-ac'