Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: memory persistance

by spadacciniweb (Deacon)
on Aug 29, 2011 at 11:20 UTC ( #922987=note: print w/replies, xml ) Need Help??

in reply to memory persistance


(($_="Mzz ojjdloobnf jt uvy5502383")=~y~b-zg2-5c96-81~a-z0-9~s)=~s~~~s; print

Replies are listed 'Best First'.
Re^2: memory persistance
by afoken (Abbot) on Aug 29, 2011 at 13:34 UTC

    Perhaps not. Storable highly depends on the perl version. It's ok if you need it just for communication with perl processes on the same machine, but it will bite you when you update perl or move to a different platform.


    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      I read from documentation:
      You can also store data in network order to allow easy sharing across multiple platforms, or when storing on a socket known to be remotely connected. The routines to call have an initial n prefix for network, as in nstore and nstore_fd . At retrieval time, your data will be correctly restored so you don't have to know whether you're restoring from native or network ordered data. Double values are stored stringified to ensure portability as well, at the slight risk of loosing some precision in the last decimals.
      This version of Storable will defer croaking until it encounters a dat +a type in the file that it does not recognize. This means that it wil +l continue to read files generated by newer Storable modules which ar +e careful in what they write out, making it easier to upgrade Storabl +e modules in a mixed environment.

      (($_="Mzz ojjdloobnf jt uvy5502383")=~y~b-zg2-5c96-81~a-z0-9~s)=~s~~~s; print

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://922987]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2018-02-23 04:58 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (300 votes). Check out past polls.