Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Perl Serialization + Moose Object. Will the code get serialized?

by choroba (Cardinal)
on May 24, 2015 at 14:49 UTC ( [id://1127594]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #serialize.pl
    use strict;
    ...
    my $no_class = retrieve('serialize.bin');
    print Dumper $no_class;
    $no_class->increaseAge();
    
  2. or download this
    $VAR1 = bless( {
                     'age' => 23,
    ...
                     'name' => 'Eva'
                   }, 'MooseClass' );
    Can't locate object method "increaseAge" via package "MooseClass" at 1
    +.pl line 46.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-19 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found