in reply to if && condition not working
use strict and warnings. I get warning messages when I compile your code:
You should eliminate the warnings before proceeding.perl -wc -Mdiagnostics 830638.pl
Also, consider using one of the many CPAN Date modules. Date::Calc has a "How do I compare two dates?" recipe.
|
|---|