Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 cooling their heels in the Monastery: (12)
As of 2014-08-29 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (282 votes), past polls