Bug 109203 - [NEW PORT] devel/p5-Scalar-Listify: Poduces an array(ref)? from a scalar value or array ref
Summary: [NEW PORT] devel/p5-Scalar-Listify: Poduces an array(ref)? from a scalar valu...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rong-En Fan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 16:40 UTC by chinsan
Modified: 2007-02-16 10:30 UTC (History)
0 users

See Also:


Attachments
p5-Scalar-Listify-0.02.shar (2.43 KB, text/plain)
2007-02-15 16:40 UTC, chinsan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description chinsan freebsd_committer freebsd_triage 2007-02-15 16:40:03 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-02-15 16:40:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

rafan@ wants this PRs
Comment 2 Rong-En Fan freebsd_committer freebsd_triage 2007-02-16 10:29:42 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-02-16 10:29:43 UTC
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"