in reply to Dispatch Table and Data::Dumper
$Data::Dumper::Deparse or $OBJ->Deparse([NEWVAL]) Can be set to a boolean value to control whether code references are turned into perl source code. If set to a true value, B::Deparse will be used to get the source of the code reference. Using this option will force using the Perl implementation of the dumper, since the fast XSUB implementation doesn't support it.The implication is clearly that by default it doesn't output source code. This is because you can't normally examine coderefs as source. It requires magic, unlike the other data types that Data::Dumper dumps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dispatch Table and Data::Dumper
by bart (Canon) on Oct 19, 2005 at 13:48 UTC | |
|
Re^2: Dispatch Table and Data::Dumper
by ghenry (Vicar) on Oct 19, 2005 at 13:31 UTC |