Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: serialise/unserialising data structures

by monoxide (Beadle)
on May 30, 2005 at 11:30 UTC ( #461761=note: print w/replies, xml ) Need Help??

in reply to Re: serialise/unserialising data structures
in thread serialise/unserialising data structures

The main reason for not doing strings/integers was the idea that 98% of the things that you would want to do would be some sort of list/array not a single value, but i can see the value in doing it that way... also something that is not "ideal" is the fact that it will erase the string you pass to it in the decode function, returning the hash/array, but deleting everything out of the scalar ref that you pass to it. ie.
bDecode(\$str); # $str is now == ''
Any suggestions on fixing this would be appreciated.

NOTE: I implemented castaway's suggestions. Very nice idea there :).

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-03-09 01:37 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (129 votes). Check out past polls.