jeteve has asked for the wisdom of the Perl Monks concerning the following question:
When we print out an object, our beloved perl outputs something like that:
Class::HASH{0x73E448} .
Which is very usefull for machines, but not really for humans. Is there a way of overriding some kind of as_string method ? I looked in the UNIVERSAL module, but didn't find any :(
Thx for help !!
-- Nice photos of naked perl sources here !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overriding as_string ?
by cephas (Pilgrim) on Oct 02, 2006 at 14:26 UTC | |
|
Re: Overriding as_string ?
by wfsp (Abbot) on Oct 02, 2006 at 14:30 UTC | |
|
Re: Overriding as_string ?
by Limbic~Region (Chancellor) on Oct 02, 2006 at 14:26 UTC | |
|
Re: Overriding as_string ?
by johnnywang (Priest) on Oct 02, 2006 at 20:16 UTC |