1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Add p5-Scalar-Listify 0.02, poduces an array(ref)? from a scalar value

or array ref.

PR:		ports/109203
Submitted by:	chinsan
This commit is contained in:
Rong-En Fan 2007-02-16 10:29:36 +00:00
parent 7857f37709
commit 52797b925c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185304
5 changed files with 44 additions and 0 deletions

View File

@ -1389,6 +1389,7 @@
SUBDIR += p5-SVN-Statistics
SUBDIR += p5-SVN-Web
SUBDIR += p5-Scalar-Defer
SUBDIR += p5-Scalar-Listify
SUBDIR += p5-Scalar-Util-Clone
SUBDIR += p5-Scope-Guard
SUBDIR += p5-Search-Binary

View File

@ -0,0 +1,22 @@
# New ports collection makefile for: p5-Scalar-Listify
# Date created: 2007/02/14
# Whom: chinsan
#
# $FreeBSD$
#
PORTNAME= Scalar-Listify
PORTVERSION= 0.02
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Scalar
PKGNAMEPREFIX= p5-
MAINTAINER= chinsan@FreeBSD.org
COMMENT= Poduces an array(ref)? from a scalar value or array ref
MAN3= Scalar::Listify.3
PERL_CONFIGURE= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Scalar-Listify-0.02.tar.gz) = 3a61ad269f70b36aee189d068392d04a
SHA256 (Scalar-Listify-0.02.tar.gz) = 5718cce30292645f8ce53e86dc0e9f82fc9bd4c12e51194f3cca32d7fb7254fc
SIZE (Scalar-Listify-0.02.tar.gz) = 2243

View File

@ -0,0 +1,13 @@
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: http://search.cpan.org/dist/Scalar-Listify/

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar/Listify/.packlist
%%SITE_PERL%%/Scalar/Listify.pm
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar/Listify
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar
@dirrmtry %%SITE_PERL%%/Scalar