I'm making a crude attempt to parse through some database BLOBS with
some success.  Some of the information is in XML format, some in
"text".  But a lot of crud exists because of the binary characters.

I originally tried this:

my $ascii = unpack("A*", $blob);

but with limited success.  At least it keeps the application from
crashing.  But it would be really useful if I could so something along
the lines of replacing certain key combinations with a  simple '\n'
or similar.

I'm also not exactly sure what the characters are that I'm seeing.
'less' says that a lot of them are <C0><80> which don't appear be on
my ascii table of characters....

help?
I'm reasonably certain that pack/unpack can do this, but I'm not sure
how.

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


Reply via email to