Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Can I serialize an object and have it remember it's type?

by tphyahoo (Vicar)
on Jul 21, 2005 at 13:13 UTC ( #476806=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use warnings;
    isa_ok($user_agent2, 'LWP::UserAgent');#fails
    print Dumper($user_agent2);
  2. or download this
    Failed test ( at line 15)
         The object isn't a 'LWP::UserAgent' it's a 'DBM::Deep'
                     'max_size' => undef
                   }, 'DBM::Deep' );

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://476806]
Approved by Limbic~Region
Front-paged by Old_Gray_Bear
[SuicideJunkie]: spies would want a system to not be able to audit.
[erix]: spies should use a type-writer, no power needed, no auditable
[erix]: if all else fails, eat the paper
[erix]: a few years ago there was suddenly the news that the Kremlin was using typewriters again. Heard nothing about it afterward
[erix]: (maybe that means it worked)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-06-23 20:19 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (555 votes). Check out past polls.