in reply to Data::Dumper is not quite what I want.
It also works with anonymous:use Data::Dumper; sub a { print "abc"; } sub b { print "123" } $hash = {"a",\&a, "b", \&b}; $Data::Dumper::Deparse = 1; print Dumper($hash);
But there is caution stated in the doc, check it.use Data::Dumper; sub b { print "123" } $hash = {"a",sub {print "abc"}, "b", \&b}; $Data::Dumper::Deparse = 1; print Dumper($hash);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Data::Dumper is not quite what I want.
by John M. Dlugosz (Monsignor) on Dec 27, 2002 at 15:44 UTC |