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 reply to Re^2: Date Handling in Perl
by joeymac
in thread Date Handling in Perl
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |