in reply to Re: Perl module to show whitespaces?in thread Perl module to show whitespaces?
use encoding 'UTF-8'; $string = "this\tis a\ncool\ftest\r"; $string =~ s/(\s)/$spaces{$1}/g; print $string; [download]