Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: MooseX::Storage and HTTP::Session ... are they friends?

by stvn (Monsignor)
on Nov 30, 2011 at 17:27 UTC ( #940908=note: print w/replies, xml ) Need Help??


in reply to MooseX::Storage and HTTP::Session ... are they friends?

MooseX::Storage is no more magic then Moose is, if you want your MooseX::Storage enabled object to be turned into a HASH ref, you just need to call the pack method on it. And to restore it from a HASH ref you call the unpack method.

As for using it with HTTP::Session, you likely just want to wrap HTTP::Session and either override the get/set methods to watch for any MooseX::Storage enabled objects, or have a special {get,set}_moose_object method that handles things for you.

-stvn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940908]
help
Chatterbox?
[holli]: my spelling... can you actually aquire dyslexia?
[LanX]: SoPW = Seekers of Perl Wisdom, the section for asking and answering general Perl questions. A form for asking a new Perl question can be found at the bottom of that page. (Be sure to read Posting on PerlMonks before posting!)
[Corion]: r@j: Have you printed what '$Process_java' prints? How will Perl know that you mean a variable named $Process and not a variable named $Process_java? Also, why doesn't Perl complain when you're using strict in your program?
[erix]: thanos1983: s/ For login purposes / For logging purposes / # I suppose ...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2017-10-23 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (280 votes). Check out past polls.

    Notices?