Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^5: Choosing the right module (Acme::EyeDrops used in production)

by eyepopslikeamosquito (Archbishop)
on Oct 25, 2022 at 10:35 UTC ( [id://11147679]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Choosing the right module
in thread Choosing the right module

I was flabbergasted to learn back in 2012 that Acme::EyeDrops was being used in production! ... but also proud that it'd been running successfully for quite a while.

Oh, I see you were also involved in that old thread!! And your reply probably provoked me into adding it to Security through Obscurity References. :)

  • Comment on Re^5: Choosing the right module (Acme::EyeDrops used in production)

Replies are listed 'Best First'.
Re^6: Choosing the right module
by cavac (Prior) on Oct 27, 2022 at 10:36 UTC

      I was unaware of Acme::September::Eternal until today. A couple of years ago in my ignorance I wrote a little script to perform essentially the same task, albeit just for the current date.

      Looking into the source we can see that Acme::September::Eternal makes use of Date::Manip (as you mention) and Lingua::EN::Numbers::Ordinate whereas my solution is based on Time::Piece and Lingua::EN::Inflexion. Mechanical details aside, they are practically the same. TIMTOWTDI indeed.

      Here is a redacted version of mine, for anyone interested.

      #!/usr/bin/env perl use strict; use warnings; use Time::Piece; use Lingua::EN::Inflexion 'inflect'; my $now = localtime; my $then = Time::Piece->strptime ('1993-08-31', '%Y-%m-%d'); my $diff = $now - $then; $diff = int ($diff / 86400); my $day = inflect ("<#o:$diff>"); print "Today is the $day of September 1993\n"; exit;

      🦛

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2026-02-09 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.