good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Date Handling in Perlby joeymac (Acolyte) |
on Jul 11, 2012 at 15:39 UTC ( [id://981167]=note: print w/replies, xml ) | Need Help?? |
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).
In Section
Seekers of Perl Wisdom
|
|