more useful options | |
PerlMonks |
Re: Retriving BerkeleyDB Databy roboticus (Chancellor) |
on Aug 02, 2014 at 01:21 UTC ( [id://1095987]=note: print w/replies, xml ) | Need Help?? |
It sounds like you'll just need to use the unpack function (perldoc -f unpack) to pull the byte string apart into the fields you want. I'd guess it would be something like:
Note: Totally untested, but I think that if you play around with unpack you'll be able to pull it apart. (You'll want to check perldoc -f pack and perldoc perlpacktut as well.) Update: changed variable names. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|