
ChopperCharles
Novice
Oct 5, 2011, 9:11 AM
Post #1 of 2
(582 views)
|
|
$string =~ tr/\x80-\xFF//d;
|
Can't Post
|
|
Given the command: $string =~ tr/\x80-\xFF//d; what does that last 'd' do? tr/ translates on a char-by-char basis. \x80-\xFF acts on ascii chars > 127. // deletes the chars instead of replacing them with something else. But the 'd'? Charles.
|