in reply to Re: Perl module to show whitespaces?
in thread Perl module to show whitespaces?

what is the syntax to apply that map to an un chomped string?

Replies are listed 'Best First'.
Re^3: Perl module to show whitespaces?
by Anonymous Monk on Apr 11, 2012 at 04:45 UTC
    use encoding 'UTF-8'; $string = "this\tis a\ncool\ftest\r"; $string =~ s/(\s)/$spaces{$1}/g; print $string;