Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[Perl300]: Hi
[Perl300]: One quick question. Is DBD::ORacle still the way to go for connecting to Oracle DB from Linux box? My code is one a different linux box than the Oracle DB
[Perl300]: I see DBI and DBD::Oracle are already installed on my Linux box where I am coding but having hard time connecting to the remote Oracle DB

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-10-20 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (266 votes). Check out past polls.

    Notices?