Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: [RFC] Module code and POD for CPAN

by Bod (Parson)
on Apr 14, 2021 at 14:37 UTC ( [id://11131277]=note: print w/replies, xml ) Need Help??


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..."

  • Comment on Re^2: [RFC] Module code and POD for CPAN

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 13:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found