Is the correct syntax to check if a list is empty in perl:

if(@list == 0)

thanks