I just want to convert the dates from 20111230
format to 30-dec-2011
.
相关问题
- $ENV{$variable} in perl
- Is it possible to pass command-line arguments to @
- Redirecting STDOUT and STDERR to a file, except fo
- Change first key of multi-dimensional Hash in perl
- How do I get a filehandle from the command line?
相关文章
- Running a perl script on windows without extension
- Comparing speed of non-matching regexp
- Can NOT List directory including space using Perl
- Extracting columns from text file using Perl one-l
- Lazy (ungreedy) matching multiple groups using reg
- How do I tell DBD::mysql where mysql.sock is?
- What is a good way to deploy a Perl application?
- Speeding up Selenium Webdriver
Here is another solution. It uses
DateTimeX::Easy
:One way is to use Date::Simple:
In keeping with TMTOWTDI, you can use Time::Piece
If I can't use one of the date modules, POSIX isn't so bad and it comes with
perl
:Making
@times
is a bit ugly. You can't always get what you want, but if you try sometimes, you might find you get what you need.A quick solution.