Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^4: Choosing the right module

by cavac (Vicar)
on Oct 25, 2022 at 08:09 UTC ( #11147675=note: print w/replies, xml ) Need Help??

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

I must admit, i use one module in a sort-of-production system on the dev side to test code. Acme::Umlautify is great for finding Unicode/UTF-8 bugs in your code.

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

Replies are listed 'Best First'.
Re^5: Choosing the right module
by eyepopslikeamosquito (Bishop) on Oct 25, 2022 at 10:35 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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2023-03-24 15:06 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (61 votes). Check out past polls.