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"
In reply to How to make object printable by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |