See perlop for the transliteration operator:
--$_ = " 12345 \n \t ab\t\t\tcd \n "; print "Before: |$_|\n"; tr/ \t\012\015/ /s; print "After: |$_|\n";
In reply to Re: Removing whitespaces,tab,line breaks, etc?
by fruiture
in thread Removing whitespaces,tab,line breaks, etc?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |