Skip to content

ReturnValue on PrePAN

The links to the Mastering Perl draft in O'Reilly Atlas were only a preview before the book was published, so they're gone now.

As part of the "Error Handling and Reporting" chapter, I've been developing my use of normal return values to indicate failure. Instead of tricky value checking, I can use the object type to decide what happened and then look in the object to get the value. That way, success and error values can use the same code path. I've created ReturnValue on Github.

Before uploading to CPAN, however, I'm trying PrePAN for the first time. This allows me to show off ReturnValue to the Perl community without claiming the namespace. I don't deal with PAUSE at all. If I decide to abandon it, it's no big deal. Comment on ReturnValue at PrePAN.

You can also read the draft chapter on O'Reilly Atlas.

The PrePAN page for ReturnValue, a meta-data wrapper object for return values, submitted by briandfoy@github and in review
ReturnValue on PrePAN