Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://867270]
marioroy running LWP::Simple on Cygwin in parallel completes in 1 second. Pre-loading essential modules is necessary only on MSWin32 Re: Crash with ForkManager on Windows.
marioroy LWP::Simple works best with Perl v5.26 on Windows. Any Perl version is fine on Cygwin and Unix.
[karlgoethebier]: Hi mario

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-09-23 15:49 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (272 votes). Check out past polls.