Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Glad you liked it! When I was writing Time::Duration, the most surprising thing was that I couldn't find anything quite like it anywhere. When I tried writing the internal logic, I found out why -- it was surprisingly hard. That makes me think that endless numbers of people start to write it, realize it's ten times harder than they thought, and give up.

    Look for Time::Duration 1.02 in CPAN probably by time you read this. By popular request, I added a new function, concise(). Where ago($thing) might return "53 minutes and 4 seconds ago", concise(ago($thing)) will return "53m4s ago".