devel/p5-Scalar-Listify 0.03_1 DragonFly
Poduces an array(ref)? from a scalar value or array ref
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 6.3 KiB, 10.8 KiB installed
Description
A lot of Perl code ends up with scalars having either a single scalar value or a reference to an array of scalar values. In order to handle the two conditions, one must check for what is in the scalar value before getting on with one's task. Ie:
$text_scalar = 'text'; $aref_scalar = [ 1.. 5 ];
print ref($text_scalar) ? (join ':', @$text_scalar) : $text_scalar;
And this module is designed to address just that!
In the other systems
The newest version among them is 0.03, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-Scalar-Listify | 0.03_1 newest | none known | - | [email protected] | - |
| FreeBSD | devel/p5-Scalar-Listify | 0.03_1 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Scalar-Listify | 0.03_1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Scalar-Listify | 0.03_1 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-Scalar-Listify
From DPorts:
cd /usr/dports/devel/p5-Scalar-Listify && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.