BSD Ports

devel/p5-Return-Value 1.666005p1 OpenBSD

polymorphic return values

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Last update
Commit
68d09f0a8b
Categories
devel, perl5

Description

Polymorphic return values are really useful. Often, we just want to know if something worked or not. Other times, we'd like to know what the error text was. Still others, we may want to know what the error code was, and what the error properties were. We don't want to handle objects or data structures for every single return value, but we do want to check error conditions in our code because that's what good programmers do.

When functions are successful they may return true, or perhaps some useful data. In the quest to provide consistent return values, this gets confusing between complex, informational errors and successful return values.

This module provides these features with a simple API that should get you what you're looking for in each context a return value is used in.

In the other systems

SystemPortVersion
OpenBSDdevel/p5-Return-Value1.666005p1
FreeBSDdevel/p5-Return-Value1.666005
NetBSDdevel/p5-Return-Value1.666.005nb10
DragonFlydevel/p5-Return-Value1.666005
MidnightBSDdevel/p5-Return-Value1.666005
HardenedBSDdevel/p5-Return-Value1.666005
GhostBSDdevel/p5-Return-Value1.666005

Install

Binary package:

pkg_add p5-Return-Value

From the ports tree:

cd /usr/ports/devel/p5-Return-Value && make install

Dependencies

Required by 1

Commit history 1

DateCommitCreditsLog message
68d09f0a8b sthen fix DESCR issues found by codespell. some wider rewording in a few cases where the file was incomprehensible.