Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Creating a Moose object and serializing it

by stvn (Monsignor)
on Oct 25, 2010 at 16:08 UTC ( #867270=note: print w/ replies, xml ) Need Help??


in reply to Re: Creating a Moose object and serializing it
in thread Creating a Moose object and serializing it

It intuitively seems to me that “a Moose object” is too much to be serializing.

Actually, your intuition is wrong, a "Moose object" is just regular old HASH reference, just like any other plain old Perl object you might create. There is no magic involved there, in fact it is pretty boring.

The only time Moose will add anything else to an instance, is if you start doing fancy stuff like applying roles to an instance, in which case it needs to keep a local reference to the metaclass and that can get ugly.

-stvn


Comment on Re^2: Creating a Moose object and serializing it

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-12-27 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls