I realize why it does that. I'm asking whether I can have something
higher-level that works for objects on the abstraction level where
one usually looks at an object.
P.S. I would know, because it would say HASH instead of Some::Package.
On Feb 23, 2006, at 22:42, Octavian Rasnita wrote:
From: "Johannes Ernst" <[EMAIL PROTECTED]>
That just changes the amount of whitespace. Here is an example of
what I want:
Some::Package {
a => 'a value',
b => 12,
c => Other::Package {
x => 34
}
}
Data::Dumper prints it exactly this way if $var is a reference to a
hash.
instead of what Data::Dumper gives me, which seems to be:
p is $VAR1 = bless( [
bless( {
'c' => 3,
'a' => 1,
'b' => 2,
}, 'pseudohash' ),
...
Data::Dumper prints $var this way because is not a simple reference
to a
hash, but an object, and that's why you see "bless" in the result,
because
otherwise you wouldn't know that that var is an object.
Teddy
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>