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
Responsible Changed From-To: freebsd-ports-bugs->rafan rafan@ wants this PRs
State Changed From-To: open->closed New port added. Thanks!
rafan 2007-02-16 10:29:36 UTC FreeBSD ports repository Modified files: devel Makefile Added files: devel/p5-Scalar-Listify Makefile distinfo pkg-descr pkg-plist Log: Add p5-Scalar-Listify 0.02, poduces an array(ref)? from a scalar value or array ref. PR: ports/109203 Submitted by: chinsan Revision Changes Path 1.2650 +1 -0 ports/devel/Makefile 1.1 +22 -0 ports/devel/p5-Scalar-Listify/Makefile (new) 1.1 +3 -0 ports/devel/p5-Scalar-Listify/distinfo (new) 1.1 +13 -0 ports/devel/p5-Scalar-Listify/pkg-descr (new) 1.1 +5 -0 ports/devel/p5-Scalar-Listify/pkg-plist (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"