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
In reply to Re: any built in function to take out null arrays elements?
by erroneousBollock
in thread any built in function to take out null arrays elements?
by adrive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |