Re: Between times

2004-08-24 Thread John W. Krahn
rmck wrote: Hello, Hello, I have a script that I want to print only if between 08:00 and 17:00. Would I match > every hour then print?? Any cleaner way to do this would be great. Thanks Cleaner? Yes, use appropriate whitespace and indentation and remove redundant code. :-) my($sec,$min,$hour,$

Re: Between times

2004-08-24 Thread Gunnar Hjalmarsson
Rmck wrote: I have a script that I want to print only if between 08:00 and 17:00. Would I match every hour then print?? Any cleaner way to do this would be great. Thanks my($sec,$min,$hour,$mday,$mon); ($sec,$min,$hour,$mday,$mon)=localtime; You can declare and assign the variables in the same expr

Re: Between times

2004-08-24 Thread Jose Alves de Castro
On Tue, 2004-08-24 at 14:49, rmck wrote: > Hello, Hi > I have a script that I want to print only if between 08:00 and 17:00. Would I match > every hour then print?? Any cleaner way to do this would be great. Thanks > > my($sec,$min,$hour,$mday,$mon); > ($sec,$min,$hour,$mday,$mon)=localtime; I