T
Taomica
How to erase Hex value 13 from string?
Perl line : $b =~ tr/\013//;
dont work?!
Thanks
Perl line : $b =~ tr/\013//;
dont work?!
Thanks
Taomica said:How to erase Hex value 13 from string?
Perl line : $b =~ tr/\013//;
dont work?!
Taomica said:How to erase Hex value 13 from string?
Perl line : $b =~ tr/\013//;
dont work?!
Warren Block said:\013 is octal. 0x0D = 13 = \015. Better to use \r if you mean carriage
return, though. And as Gunnar said, you need the d modifier:
$b =~ tr/\r//d;
Paul Lalli said:Function calls do not interpolate.
Gunnar said:You missed the /d modifier.
Bart said:You missed the fact that \013 is in octal, not in hex.
Gunnar said:Since you say that *I* missed, I have to ask: Is there a requirement to
cover the whole problem when you try to help here?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.