Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Getting back $object from eval(Dumper($object))

by borisz (Canon)
on Jul 27, 2005 at 09:02 UTC ( [id://478517]=note: print w/replies, xml ) Need Help??


in reply to Getting back $object from eval(Dumper($object))

use warnings; use strict; use Data::Dumper; use Test::More qw(no_plan); package Foo; sub new {bless {'a' => 1}, $_[0]}; package main; my $foo = Foo->new(); my $foo_dumped_evaled; eval Data::Dumper->Dump([$foo], [ qw /foo_dumped_evaled/ ]) ; isa_ok($foo_dumped_evaled,'Foo'); #fails print Dumper($foo);
Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found