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);
In reply to Re: Getting back $object from eval(Dumper($object))
by borisz
in thread Getting back $object from eval(Dumper($object))
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |