Path to this page:
./
devel/p5-Return-Value,
Polymorphic Return Values
Branch: pkgsrc-2015Q3,
Version: 1.666.004nb1,
Package name: p5-Return-Value-1.666.004nb1,
Maintainer: pkgsrc-usersPolymorphic 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.
Required to run:[
lang/perl5]
Master sites: (Expand)
SHA1: d1dbc0daee46294ab121cb7b54198d7f08d07193
RMD160: 591d8b8a7ba6adfe93ab91ed0e2ac4d0a0bcca74
Filesize: 16.712 KB
Version history: (Expand)
- (2015-09-30) Package added to pkgsrc.se, version p5-Return-Value-1.666.004nb1 (created)