And to make that warning go away in places you really need the eq there is if(defined $foo && $foo eq 'bar')for my $need (grep { /^sanj/ } @need) { $array1[$incr1++] = $need; } #although maybe in that case you would just do the more readable for my $need (@need) { if($need =~ /^sanj/) { $array1[$incr1++] = $need; } }
In reply to Re^2: Why "use of uninitialized value" warning comes?
by suaveant
in thread Why "use of uninitialized value" warning comes?
by sanjay nayak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |