in reply to Re: Date Handling in Perl
in thread Date Handling in Perl
Thanks. I have been playing with your method, but I'm not completely sure what this line is doing:
$hour > 10 ? $_=0 : $_=60*60*24; # seconds in the dayIt seems to be some pattern matching that I am not completely familiar with. Do you mind elaborating a little? I was trying to tweak it to see if I could make it print today and/or yesterday in the final position of the directory path before I add it to my operational code, but I can only ever get it to print yesterday (/07/10).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Date Handling in Perl
by frozenwithjoy (Priest) on Jul 11, 2012 at 16:57 UTC | |
|
Re^3: Date Handling in Perl
by Anonymous Monk on Jul 11, 2012 at 16:01 UTC | |
|
Re^3: Date Handling in Perl
by aitap (Curate) on Jul 11, 2012 at 16:06 UTC | |
by Anonymous Monk on Jul 11, 2012 at 16:24 UTC | |
by aitap (Curate) on Jul 11, 2012 at 17:11 UTC |