in reply to Re: Why are closures cool, continued?
in thread Why are closures cool, continued?
Data::Dumper is going to give out "DUMMY" as the value for any sub, not just a closure. The contents of a subroutine are represented internally with a variety byte code I believe, which would look like so much nonsense if it were printed in the contents of a Data::Dumper dump. Contrast to scalars (or hash keys or hash/array values made from scalars) and to references. Scalars eventually turn out to be some sequence of characters, and references inside a data structure can be represented with brackets and braces.
'perldoc Data::Dumper' has more info on this in the BUGS section.
'perldoc Data::Dumper' has more info on this in the BUGS section.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (ichimunki) re x 2: Why are closures cool, continued?
by theorbtwo (Prior) on Jan 20, 2002 at 00:30 UTC |
In Section
Seekers of Perl Wisdom