in reply to Custom date string formatting

I'm sure that you don't want to be doing date manipulation as strings ... that'll only lead to pain and suffering... promose

DateTime may help out some ...

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Replies are listed 'Best First'.
Re^2: Custom date string formatting
by nelio (Novice) on Feb 01, 2007 at 13:59 UTC
    Since I'm getting the input as a string and not as a date, and since I really don't want to do any datetime calculations (just present the date in a different way) I figured out that using POSIX would be like trying to kill a fly with a 9 inch cannon.
    Also the environment I'm working on is kinda restrictive, so any module that's not installed by default should be considered "exotic".

    Nelio

      Aah, yes, but if later you find yourself wanting to do more date manipulations, and finding that the fly spray you have won't work against the larger flying animals.

      Also, you're going to have to install your script on anyway, worst case, you have a use lib q[./lib]; and a lib directory with your script... best case, you just drop it in the same directory as your script (since . is generally in @INC anyway) Cpan as non root also offers helpful advice

      90% of your project is only done if you reuse code.

      ... having said that, i'm sure you have your reasons

      @_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;