Help for this page

Select Code to Download


  1. or download this
     If no string is specified via the =~ or !~ operator, the $_ string is
    + transliterated.
    
  2. or download this
    C:\test>perl -wle"$_ = 'aaa'; print $_ !~ tr[a][]"
    
    ...
    C:\test>perl -wle"$_ = 'aaa'; print $_ !~ tr[bc][]"
    1
    C:\test>perl -wle"$_ = 'aab'; print $_ !~ tr[bc][]"
    
  3. or download this
    perl -wle"$_ = 'aaa'; $_ !~ tr[a][]d; print"