in reply to Re: [RFC] Module code and POD for CPAN
in thread [RFC] Module code and POD for CPAN
If you must use this style for signaling an error then perhaps you should document that gettting an object back (as opposed to undef) is not a guarantee that object construction succeeded
Good point thanks - I shall add that to the documentation.
Returning an object came from advice given by GrandFather in Re: [RFC] Review of module code and POD
"Consider having new return an instance of Bod::CRM with its error field set..."
|
|---|