in reply to To test empty array in perl

Taking "all the elements of @array contains  " literally, you could use code like

if (grep(/ /, @array) == @array) { say "all elements contain  " }


Unless I state otherwise, all my code runs with strict and warnings