http://qs1969.pair.com?node_id=640511


in reply to any built in function to take out null arrays elements?

And when 5.10 arrives
#!/usr/local/bin/perl5.9.5 # use feature ":5.10"; use strict; use warnings; print "content-type: text/html\n\n"; my @userArray = qw(batman robin joker); my @userArray2; #this is a null array my @mainArray = (@userArray, @userArray2); my @set; # A loop, just for this example... for(@mainArray) { when ( ! defined $_ ) { next } when ( /^$/ ) { next } default { push @set, $_ } } say "@set";
I of course do not mean this as a serious (Use this in production) reply to the op.
Ted
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
  --Ralph Waldo Emerson