p5-Scalar-Listify - Poduces an array(ref)? from a scalar value or array ref

Property Value
Distribution FreeBSD 12
Repository FreeBSD i386 Official
Package filename p5-Scalar-Listify-0.03_1.txz
Package name p5-Scalar-Listify
Package version 0.03
Package release 1
Package architecture i386
Package type txz
Homepage https://metacpan.org/release/Scalar-Listify
License GPLv1+, ART10
Maintainer perl@FreeBSD.org
Download size 6.32 KB
Installed size 10.82 KB
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!
WWW: https://metacpan.org/release/Scalar-Listify


Package Version Architecture Repository
p5-Scalar-Listify All All All


Name Value
perl5 = 5.30.1


Type URL
Mirror pkg.freebsd.org
Binary Package p5-Scalar-Listify-0.03_1.txz
Source Package devel/p5-Scalar-Listify

Install Howto

Install p5-Scalar-Listify txz package:

# pkg install p5-Scalar-Listify

See Also

Package Description
p5-Scalar-String-0.003.txz String aspects of scalars
p5-Scalar-Util-LooksLikeNumber-1.39.1_1.txz Perl extension for looks_like_number() perl API
p5-Scalar-Util-Numeric-0.40.txz Numeric tests for perl scalars
p5-Schedule-At-1.15_1.txz OS independent interface to the Unix 'at' command
p5-Schedule-Cron-1.01_1.txz Schedule::Cron - cron-like scheduler for Perl subroutines
p5-Schedule-Cron-Events-1.95_1.txz Take a line from a crontab and find out when events will occur
p5-Schedule-Load-3.064_1.txz Load distribution and status across multiple host machines
p5-Schedule-Match-0.07_1.txz Handles and detects clash between pattern-based schedules
p5-Scope-Container-0.04.txz Container object for temporary scoped items like database connections
p5-Scope-Container-DBI-0.09.txz DB connection manager with Scope::Container
p5-Scope-Guard-0.20_1.txz Lexically scoped resource management
p5-Scope-Upper-0.32.txz Act on upper scopes
p5-Scrappy-0.94112090_1.txz All Powerful Web Harvester, Spider, Scraper fully automated
p5-Script-isAperlScript-1.0.0_1.txz Basic check for if something is a perl script or not
p5-Search-Elasticsearch-6.00.txz ElasticSearch API