Bug 109293 - [NEW PORT] misc/p5-List-Rotation-Cycle: Cycle through a list of values
Summary: [NEW PORT] misc/p5-List-Rotation-Cycle: Cycle through a list of values
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-18 18:10 UTC by chinsan
Modified: 2007-02-19 07:01 UTC (History)
0 users

See Also:


Attachments
p5-List-Rotation-Cycle-1.004.shar (2.66 KB, text/plain)
2007-02-18 18:10 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-18 18:10:02 UTC
Use List::Rotation::Cycle to loop through a list of values. Once you get to
the end of the list, you go back to the beginning.

List::Rotation::Cycle is implemented as a Singleton Pattern. You always just
get 1 (the very same) Cycle object even if you use the new method several
times. This is done by using Memoize on the new method. It returns the same
object for every use of new that comes with the same List of parameters.

WWW: http://search.cpan.org/dist/List-Rotation-Cycle/

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-02-18 18:10:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

rafan@ wants this PRs
Comment 2 Rong-En Fan freebsd_committer freebsd_triage 2007-02-19 07:01:20 UTC
State Changed
From-To: open->closed

New port added. Thanks!