Does anyone know how can i write the following in perl?
I wan to write if hour is between 0 and 12 then doing something, like :
if ($Hour > 0 < 12 ) {
print "$morning";
}
elsif ($Hour > 12 < 18 ) {
print "$afternoon";
}
elsif ($Hour > 12 < 24 ) {
print "$evening";
but the server said i got some errors, can anyone point me to the right direction?
------------------
Bear EveryWhere
I wan to write if hour is between 0 and 12 then doing something, like :
if ($Hour > 0 < 12 ) {
print "$morning";
}
elsif ($Hour > 12 < 18 ) {
print "$afternoon";
}
elsif ($Hour > 12 < 24 ) {
print "$evening";
but the server said i got some errors, can anyone point me to the right direction?
------------------
Bear EveryWhere