p5-Scalar-Listify
0.03_1Poduces an array(ref)? from a scalar value or array ref
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!
Origin: devel/p5-Scalar-Listify
Category: devel
Size: 10.6KiB
License: ART10, GPLv1+
Maintainer: perl@FreeBSD.org
Dependencies: 1 packages
Required by: 1 packages
Website: metacpan.org/release/Scalar-Listify
$
pkg install p5-Scalar-ListifyDependencies (1)
Required By (1 packages)
More in devel
ruby33-gems3.7.2
Package management framework for the Ruby languagegettext-runtime0.26
GNU gettext runtime libraries and programsglib2.84.4,2
Some useful routines of C programming (current stable version)desktop-file-utils0.28
Couple of command line utilities for working with desktop entriesqt6-base6.10.1_1
Qt base (core, gui, widgets, network,...)qt5-core5.15.18p109
Qt core non-graphical module (KDE patched)rubygem-aws-sigv41.12.1
Amazon Web Services Signature Version 4 signing libraryphp84-pear1.10.17
PEAR framework for PHPrubygem-aws-sdk-core3.240.0
AWS SDK for Ruby - Corephp82-pear1.10.17
PEAR framework for PHP