You can use the following way also.
Code:
my @arr ;
if ( @arr )
{
    print "Array not empty\n";
}
else
{
    print "Array empty\n";
}
There is no need to use the scalar function.
By default this will be treated as scalar context