Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

barbie (2653)

  reversethis-{ku. ... m} {ta} {eibrab}

Leader of [] and a CPAN author []. Co-organised YAPC::Europe in 2006 and the 2009 QA Hackathon, responsible for the YAPC Conference Surveys [] and the QA Hackathon [] websites. Also the current caretaker for the CPAN Testers websites and data stores.

If you really want to find out more, buy me a Guinness ;)

Memoirs of a Roadie []
CPAN Testers Reports []
YAPC Conference Surveys []
QA Hackathon []

Journal of barbie (2653)

Sunday April 27, 2003
03:17 PM

Another Module Idea

[ #11873 ]
While helping out on a Perl message board recently, I posted some code to create a select box of dates. I used davorg's module Calendar::Simple, and it worked really well, for what the question posted wanted.

After a little while, I looked back over the code, and realised two things. Firstly I'd actually made it alot more longwinded than necessary, and secondly there is quite a module to built around it.

So now I have the beginnings of Calendar::List, which will export DateList() and DateSelect(). The former will return either an array or hash based on its parameters, while the second will return a string containing a completed HTML Select Box code snippet. You'll be able to pass a hash of settings to each, which will do all sorts of fun things like preset start/end dates, ignore weekends, limit the number of options, etc. Hopefully I'll have something decent to initially realse in a couple of weeks.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Sub Names (Score:2, Interesting)

    DateSelect is a pretty ambiguous name for a sub. Maybe something that denotes it generates an HTML snippet? DateHTMLSelect? HTMLSelectFromDate?