Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I know that there are modules that can generate a date string in the format YYYYMMDDHH, but is there one that can actually parse such string into variables, something like?:
my ($year, $month, $day, $hour) = Foo::bar('2008032017');
thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parse YYYYMMDDHH string
by vlademonkey (Pilgrim) on Mar 20, 2008 at 22:17 UTC | |
by Anonymous Monk on Mar 21, 2008 at 00:01 UTC | |
|
Re: Parse YYYYMMDDHH string
by FunkyMonk (Bishop) on Mar 20, 2008 at 22:05 UTC | |
|
Re: Parse YYYYMMDDHH string
by Fletch (Bishop) on Mar 20, 2008 at 22:03 UTC | |
|
Re: Parse YYYYMMDDHH string
by parv (Parson) on Mar 21, 2008 at 04:02 UTC |