my @foo = (); print defined(@foo) ? "Empty arrays are defined\n" : "Empty arrays are undefined\n"