Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: zlib compression of numeric values

by xiaoyafeng (Chaplain)
on Jul 17, 2012 at 05:33 UTC( #982135=note: print w/replies, xml ) Need Help??


in reply to zlib compression of numeric values

I ran the code you post and throw an error:
No data given to hexdump. at C:/Perl/site/lib/Data/Hexdumper.pm line 2 +88.
I've never used Compress::Raw::Zlib. but I think compress lib doesn't know what string or number is, it just treat all as binary data. So do you try to put number in to a file, binmode it and test it again? or just:
$num_data = 7; open(my $fh, '<', \$num_data); binmode($fh); ....... .......
HIH.




I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2016-08-30 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (418 votes). Check out past polls.