Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Dispatch Table and Data::Dumper

by Roy Johnson (Monsignor)
on Oct 19, 2005 at 13:28 UTC ( #501299=note: print w/replies, xml ) Need Help??

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!!!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://501299]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2020-11-29 11:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found