or in your loop either of:@users = grep { $_ } @users; #eleminate undef elements
next unless $user; #after the chomp (which could be done on the whole +array outside the loop print $user . '.mydomain.com' if $user;
In reply to Re: undef line in an array
by voyager
in thread undef line in an array
by Dalin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |