Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Creating a Moose object and serializing it

by stvn (Monsignor)
on Oct 25, 2010 at 16:08 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://867270]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found