Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Date formatting

by davorg (Chancellor)
on Jun 30, 2003 at 14:14 UTC ( [id://270172]=note: print w/replies, xml ) Need Help??


in reply to Re: Date formatting
in thread Date formatting

Why bother loading external (and very large and slow) modules when this is really a text processing problem that can be solved very easily with standard Perl functions?

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re3: Date formatting
by dragonchild (Archbishop) on Jun 30, 2003 at 15:16 UTC
    "If you're doing more than that" ... where "that" implies your original reply.

    While Date::Manip is large and slow and all things horrible ... Perl is large and slow and all things horrible too! If you're looking for execution speed, go to ASM. If you're looking for development speed, use the appropriate modules. Personally, I don't think the OP wanted the fastest solution. I believe he (and nearly everyone who posts on PM) is looking for the easiest solution. Both solutions are easy. Yours is easier in that it doesn't require learning how to use modules. Date::Manip is easier when the requirements change, like they always do.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

      Fair point. But in that case I'd be far more likely to suggest that people used something like DateTime or one of the other modules from the Perl date/time project.

      --
      <http://www.dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-28 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found