Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Re: Mixed Data

by krazken (Scribe)
on Nov 09, 2001 at 09:59 UTC ( [id://124301]=note: print w/replies, xml ) Need Help??

in reply to Re: Mixed Data
in thread Mixed Data

Someone else suggested...
while (<>) { print join ' ',split /\x00/; }
And this does remove the binary zeros from inside of the records.

Replies are listed 'Best First'.
Re: Re: Re: Mixed Data
by Zaxo (Archbishop) on Nov 09, 2001 at 14:28 UTC
    Someone else suggested...

    That was me, but you've added a space to the join. If you want to substitute space for null, tr/\000/ /; should work (tr/// wants octal).

    In any case, there is no reason s/\x00//g; wouldn't work if split on that regex does. How about posting some more of your code so we can see what the problem really is?

    After Compline,

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://124301]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-05-21 07:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found