Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: OO design: returning string and/or special valueby pwagyi (Monk) |
on Oct 10, 2019 at 08:12 UTC ( [id://11107285]=note: print w/replies, xml ) | Need Help?? |
If you have a method that returns SCALAR, in this case, I assume it should also be an object. Converting that object to string format should be responsibility of that object's class. not method() that returns that SCALAR responsibility.
In Section
Seekers of Perl Wisdom
|
|