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>