On 10 Jan 2007 at 9:58, Tom Phoenix wrote:

> On 1/10/07, Beginner <[EMAIL PROTECTED]> wrote:

> You can use Perl to tell you what the odd characters are. I often use
> an ASCII table and unpack:
>
>     print unpack("H*", $data), "\n";
>
> > MIKE \A0 \A0\A0HOLLINGSHEAD/JIM REED

That has helped and I think this is a non-breaking space. I know have

print unpack("H*",$phg)," $phg\n";

4d494b4520a020a020a0484f4c4c494e475348454144 MIKE      HOLLINGSHEAD
M  I  K  E                     H  O L  L  I N  G H  E  A  D

This is the sequence I would like to change to a single space:
20a020a020a0

> On some systems, character 0xA0 is the non-breaking space.

> It depends upon what you want to replace these characters with. Maybe
> something like this?
>
>     tr/\xA0\x20/\x20/s

Unfortunately this didn't do it. I had a look at perlop to see what
that tr command was doing but it does go into detail about using tr
with oct or hex characters.


> Hope this helps!
> --Tom Phoenix

Yes it did a little more and I'll be there.
Thanx,
Dp.






--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to