in reply to any built in function to take out null arrays elements?
and then...my @userArray = qw(batman robin joker); my @userArray2; #this is a null array my @mainArray = (@userArray, @userArray2);
@mainArray should already contain what you want.#@set should consist "batman robin joker", but not #"batman robin joker NULL"
I think you misunderstand exists and delete.my @set = map { exists($_)? $_ : delete($_) } @mainArray;
-David
|
|---|