- or download this
If no string is specified via the =~ or !~ operator, the $_ string is
+ transliterated.
- 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][]"
- or download this
perl -wle"$_ = 'aaa'; $_ !~ tr[a][]d; print"