
perlkid
stranger
Oct 29, 2000, 7:28 PM
Post #2 of 3
(619 views)
|
|
Re: Looking for a script that makes flowers grow
[In reply to]
|
Can't Post
|
|
Well, You can make a perl file with this code in it, and it will print whatever statement you want for that month. #!/usr/bin/perl print "Content-type: text/html\n\n"; @time=localtime; $month = $time[4]; $year = $time[5] + 1900; if ($month eq "9" && $year eq "2000"){ print "Something About A Flower Growing"; } exit; That will print that statement through out the whole month of October of 2000. The months start at 0 in perl, so 0 is January, and 11 is December. Is this what you wanted? perlkid [This message has been edited by perlkid (edited 10-29-2000).]
|