#!/usr/bin/perl -w use strict; my $var=time/(24*60*60); print $var%2 ? "odd\n" : "even\n";
The only difference is the parentheses. I'm not sure why they are required. Perhaps somebody else can explain that...
In reply to Re: odd or even day?
by McDarren
in thread odd or even day?
by jondkent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |