my $string = "abc12defghi\013jkl"; (my $copy = $string) =~ s/([^[:print:]])/sprintf " (0x%02x) ", ord $1/ +ge; print $copy;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: Re: Is there any garbage chars in your data?
by merlyn
in thread Is there any garbage chars in your data?
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |