in reply to To test empty array in perl
if (grep(/ /, @array) == @array) { say "all elements contain " } [download]