SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,17 @@
COMMENT = polymorphic return values
MODULES = cpan
PKG_ARCH = *
DISTNAME = Return-Value-1.666005
CATEGORIES = devel
REVISION = 0
CPAN_AUTHOR = RJBS
# perl
PERMIT_PACKAGE = Yes
MAKE_ENV = TEST_POD=Yes
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (Return-Value-1.666005.tar.gz) = jiJgqWUx6TaGIAuciFDr4AXYjONp/2vHD/GnQFt1UKw=
SIZE (Return-Value-1.666005.tar.gz) = 20412

View file

@ -0,0 +1,15 @@
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 contex a return value is used in.

View file

@ -0,0 +1,3 @@
${P5SITE}/Return/
${P5SITE}/Return/Value.pm
@man man/man3p/Return::Value.3p