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,
    Zaxo