RE: Day Month Issues

2002-06-03 Thread Nikola Janceski
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

RE: Day Month Issues

2002-06-03 Thread Hanson, Robert
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

RE: Day Month Issues

2002-06-03 Thread Shishir K. Singh
try putting my before the declaration my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); -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