Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
However, when I try to print an object that I create, it just prints something like the following: MyClass=HASH(0x9eff760) My question is, how do I tell it how to print objects of my class?use Math::BigInt; print Math::BigInt->new("123"); # prints "123"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to make object printable
by tilly (Archbishop) on Mar 01, 2009 at 00:58 UTC | |
|
Re: How to make object printable
by Anonymous Monk on Mar 01, 2009 at 01:59 UTC |