Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2007 00:33:34 +0800 (CST)
From:      chinsan <chinsan@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/109203: [NEW PORT] devel/p5-Scalar-Listify: Poduces an array(ref)? from a scalar value or array ref
Message-ID:  <20070215163334.5910611443@chinsan.twbbs.org>
Resent-Message-ID: <200702151640.l1FGe3pM045735@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109203
>Category:       ports
>Synopsis:       [NEW PORT] devel/p5-Scalar-Listify: Poduces an array(ref)? from a scalar value or array ref
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 15 16:40:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     chinsan
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
Taiwan
>Environment:
System: FreeBSD chinsan.twbbs.org 6.2-STABLE FreeBSD 6.2-STABLE #6: Mon Feb  5 23:22:25 CST
>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!

WWW: http://search.cpan.org/dist/Scalar-Listify/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- p5-Scalar-Listify-0.02.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-Scalar-Listify
#	p5-Scalar-Listify/Makefile
#	p5-Scalar-Listify/distinfo
#	p5-Scalar-Listify/pkg-descr
#	p5-Scalar-Listify/pkg-plist
#
echo c - p5-Scalar-Listify
mkdir -p p5-Scalar-Listify > /dev/null 2>&1
echo x - p5-Scalar-Listify/Makefile
sed 's/^X//' >p5-Scalar-Listify/Makefile << 'END-of-p5-Scalar-Listify/Makefile'
X# New ports collection makefile for:	p5-Scalar-Listify
X# Date created:				2007/02/14
X# Whom:					chinsan
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Scalar-Listify
XPORTVERSION=	0.02
XCATEGORIES=	devel perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Scalar
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	chinsan@FreeBSD.org
XCOMMENT=	Poduces an array(ref)? from a scalar value or array ref
X
XMAN3=		Scalar::Listify.3
X
XPERL_CONFIGURE=	yes
X
X.include <bsd.port.mk>
END-of-p5-Scalar-Listify/Makefile
echo x - p5-Scalar-Listify/distinfo
sed 's/^X//' >p5-Scalar-Listify/distinfo << 'END-of-p5-Scalar-Listify/distinfo'
XMD5 (Scalar-Listify-0.02.tar.gz) = 3a61ad269f70b36aee189d068392d04a
XSHA256 (Scalar-Listify-0.02.tar.gz) = 5718cce30292645f8ce53e86dc0e9f82fc9bd4c12e51194f3cca32d7fb7254fc
XSIZE (Scalar-Listify-0.02.tar.gz) = 2243
END-of-p5-Scalar-Listify/distinfo
echo x - p5-Scalar-Listify/pkg-descr
sed 's/^X//' >p5-Scalar-Listify/pkg-descr << 'END-of-p5-Scalar-Listify/pkg-descr'
XA lot of Perl code ends up with scalars having either a single scalar value
Xor a reference to an array of scalar values. In order to handle the two
Xconditions, one must check for what is in the scalar value before getting on
Xwith one's task. Ie:
X
X  $text_scalar = 'text';
X  $aref_scalar = [ 1.. 5 ];
X
X  print ref($text_scalar) ? (join ':', @$text_scalar) : $text_scalar;
X
XAnd this module is designed to address just that!
X
XWWW: http://search.cpan.org/dist/Scalar-Listify/
END-of-p5-Scalar-Listify/pkg-descr
echo x - p5-Scalar-Listify/pkg-plist
sed 's/^X//' >p5-Scalar-Listify/pkg-plist << 'END-of-p5-Scalar-Listify/pkg-plist'
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar/Listify/.packlist
X%%SITE_PERL%%/Scalar/Listify.pm
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar/Listify
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Scalar
X@dirrmtry %%SITE_PERL%%/Scalar
END-of-p5-Scalar-Listify/pkg-plist
exit
--- p5-Scalar-Listify-0.02.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070215163334.5910611443>