you have -w or use warnings; You should only use a slice of the info you
want.
from the warnings I see you want min and hour.
use:
($min,$hour)= ( localtime(time) )[1,2]; # no warnings



> -----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]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to