I don't know if this will help, but in: ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime (time);
$yday will give you the number of days since the beginning of the year. Carson ---------- Original Message ---------------------------------- From: Francesco Guglielmo <[EMAIL PROTECTED]> Date: Fri, 12 Jul 2002 15:58:24 +0200 >I need to do a Perl script who do a certain command after 2 days.Example: >my file contains > >8 Jul 2002 > >when I lunch the script it must control the date and if it's equal to >date+2 (in this case 10 Jul 2002) execute my commands trought system.I >thought to do this transforming the date in this format to days from the >begin of the year but I don't know how.Thanks for your help, >Francesco > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]