Need to get file count for previous day, I am using below script but getting syntax error.

Need to get file count for previous day, I am using below script but getting syntax error.

$path=@ARGV;
$sysdate = $sysdate -1;
$stat=0;
if ($path eq 0) && ($sysdate)
{
print "Message: Can't find \"path\" argument. Please provide full path or regular expression to existing file(s).\n";
exit 1;
}
else if ( ) && ($sysdate)
{
$stat++;
print "$line";
}
else ($stat eq 0) && ($sysdate)
{
print "Statistic: $stat\n";
print "Message: File(s) not found.\n";
exit 0;
}
print "Statistic: $stat\n";
print "Message: Files number: $stat\n";
exit 0;