$A[0] eq "Some,value,with,commas,mixed,in"; $A[1] eq undef; # Nothing at all. $A[2] eq undef; # And same with $A[3], $A[4], and so on.