devel/p5-Return-Type 0.007 DragonFly
Specify a return type for a function (optionally with coercion)
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 12.9 KiB, 46.7 KiB installed
Description
Return::Type allows you to specify a return type for your subs. Type constraints from any Type::Tiny, MooseX::Types or MouseX::Types type library are supported.
The simple syntax for specifying a type constraint is shown in the "SYNOPSIS". If the attribute is passed a single type constraint as shown, this will be applied to the return value if called in scalar context, and to each item in the returned list if called in list context. (If the sub is called in void context, type constraints are simply ignored.)
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/p5-Return-Type | 0.007 |
| FreeBSD | devel/p5-Return-Type | 0.007 |
| HardenedBSD | devel/p5-Return-Type | 0.007 |
| GhostBSD | devel/p5-Return-Type | 0.007 |
Install
Binary package:
pkg install p5-Return-Type
From DPorts:
cd /usr/dports/devel/p5-Return-Type && make install clean