in reply to Dispatch Table and Data::Dumper

Data::Dumper says:
$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.

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Dispatch Table and Data::Dumper
by bart (Canon) on Oct 19, 2005 at 13:48 UTC
    Note that is a new feature in the latest release(s) of Data::Dumper. The previous version that is available on CPAN, Data::Dumper 2.101, didn't have it yet.

    So it's very well possible that the version of Data::Dumper that came with your perl, doesn't have it yet.

Re^2: Dispatch Table and Data::Dumper
by ghenry (Vicar) on Oct 19, 2005 at 13:31 UTC

    Oh dear me, perldoc should always be my first point of call. This should have been one for the CB!

    Thanks guys.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a Just ask!!!