You are running with warnings turned on, and Perl is just warning you that you *might* have made a mistake by creating a variable then not using it.
....In this case it isn't a mistake, but it will still warn you about it. Snippet from perldoc perlrun -w prints warnings about variable names that are mentioned only once... You can get around it by either turn off warnings, or not creating those variables. This should be ok... my @date = localtime(time); my $min = $date[1]; my $hour = $date[2]; ....etc, only creating variables that you are actually going to use. Rob -----Original Message----- From: Lance Prais [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 1:55 PM To: Perl Subject: Day Month Issues I am getting the following error when I execute my script. It is not erroring out nor is it not working as I think it should. I am just curious why this is happening. Any Ideas? Thanks Lance CODE: ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); ERROR: Name "main::mday" used only once: possible typo at E:\sea621\siebsrvr\BIN\Perl\ in\outlook.pl line 15. Name "main::sec" used only once: possible typo at E:\sea621\siebsrvr\BIN\Perl\b n\outlook.pl line 15. Name "main::isdst" used only once: possible typo at E:\sea621\siebsrvr\BIN\Perl bin\outlook.pl line 15. Name "main::year" used only once: possible typo at E:\sea621\siebsrvr\BIN\Perl\ in\outlook.pl line 15. Name "main::mon" used only once: possible typo at E:\sea621\siebsrvr\BIN\Perl\b n\outlook.pl line 15. Name "main::wday" used only once: possible typo at E:\sea621\siebsrvr\BIN\Perl\ in\outlook.pl line 15. Name "main::yday" used only once: possible typo at E:\sea621\siebsrvr\BIN\Perl\ in\outlook.pl line 15. -- 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]