devel/p5-Scalar-Listify 0.03_1 FreeBSD
Poduces an array(ref)? from a scalar value or array ref
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 6.8 KiB, 10.6 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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Scalar-Listify | 0.03_1 |
| DragonFly | devel/p5-Scalar-Listify | 0.03_1 |
| HardenedBSD | devel/p5-Scalar-Listify | 0.03_1 |
| GhostBSD | devel/p5-Scalar-Listify | 0.03_1 |
Install
Binary package:
pkg install p5-Scalar-Listify
From the ports tree:
cd /usr/ports/devel/p5-Scalar-Listify/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Scalar-Listify>0:devel/p5-Scalar-Listify
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.03_1 | 0.03_1 | 0.03_1 | 0.03_1 | 0.03_1 |
| FreeBSD:14:quarterly | 0.03_1 | 0.03_1 | n/a | 0.03_1 | 0.03_1 |
| FreeBSD:15:latest | 0.03_1 | 0.03_1 | n/a | 0.03_1 | 0.03_1 |
| FreeBSD:15:quarterly | 0.03_1 | 0.03_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.03_1 | 0.03_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%PERL5_MAN3%%/Scalar::Listify.3.gz
- %%SITE_PERL%%/Scalar/Listify.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Scalar-Listify-0.03.tar.gz | 2650 | 5e75bb6aee4893ed8bc5d782c9be1a379248f503a5fff214025682683308bec6 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.