What you want is certainly possible, but your code in Module::Test is not how you construct objects (or "objects"). Please have a look at bless or one of the object tutorials. If your objects are merely collections of data, just return an unblessed hash reference:
sub new { ... return \%return };
In reply to Re: Perl Module Object - Return fail/success with a fault string
by Corion
in thread Perl Module Object - Return fail/success with a fault string
by jhyland87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |