> Thanks. For some reason, this is not working like the C code 
> is ( my desired result)
> 
> C:
> echo   | cvt 
> adc def
> hij
> 
> Perl:
> echo "abc^Hdef\nhij"  | perl -pe 'tr/\040-\176\n/ /c'             
> abc^Hdef
> hij


> perl -pi.bak -e 'tr/\040-\176\n/ /c' file

> That'll change all characters that are NON between 0040 and 0176 and \n
> into spaces.

woops, never mind. It works fine. I stuck a real backpsace char in there by
unsetting my stty setttings and it worked. 
echo "aaa\b^Hb\na" | test.pl
aaa  b
a

THANKS JEFF AND ALL WHO HELPED!!!!!!!!!!!

Jim


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to