From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 15 16:40:04 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 225E416A406 for ; Thu, 15 Feb 2007 16:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0383813C442 for ; Thu, 15 Feb 2007 16:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1FGe3VJ045736 for ; Thu, 15 Feb 2007 16:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1FGe3pM045735; Thu, 15 Feb 2007 16:40:03 GMT (envelope-from gnats) Resent-Date: Thu, 15 Feb 2007 16:40:03 GMT Resent-Message-Id: <200702151640.l1FGe3pM045735@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, chinsan Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 487E016A401 for ; Thu, 15 Feb 2007 16:33:32 +0000 (UTC) (envelope-from chinsan@chinsan.twbbs.org) Received: from chinsan.twbbs.org (220-132-119-51.HINET-IP.hinet.net [220.132.119.51]) by mx1.freebsd.org (Postfix) with ESMTP id 8FD9113C4B8 for ; Thu, 15 Feb 2007 16:33:31 +0000 (UTC) (envelope-from chinsan@chinsan.twbbs.org) Received: by chinsan.twbbs.org (Postfix, from userid 1001) id 5910611443; Fri, 16 Feb 2007 00:33:34 +0800 (CST) Message-Id: <20070215163334.5910611443@chinsan.twbbs.org> Date: Fri, 16 Feb 2007 00:33:34 +0800 (CST) From: chinsan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/109203: [NEW PORT] devel/p5-Scalar-Listify: Poduces an array(ref)? from a scalar value or array ref X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2007 16:40:04 -0000 >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 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: