flipper has asked for the wisdom of the Perl Monks concerning the following question:
use Data::Dumper; $foo = sub {return []}; $bar = {arefpromise => $foo}; $d = Data::Dumper->new([$bar]); print "foo is a coderef $foo returning ".$foo->()."\n"; $d->Seen ({$foo => $foo->()}); print $d->Dump();
foo is a coderef CODE(0x8154684) returning ARRAY(0x8153c28) $VAR1 = { 'arefpromise' => sub { "DUMMY" } };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Data::Dumper->Seen() with coderefs?
by tilly (Archbishop) on Jan 11, 2009 at 00:54 UTC |