Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Why "use of uninitialized value" warning comes?

by suaveant (Parson)
on Nov 01, 2006 at 14:05 UTC ( #581676=note: print w/replies, xml ) Need Help??


in reply to Re: Why "use of uninitialized value" warning comes?
in thread Why "use of uninitialized value" warning comes?

Or even
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; } }
And to make that warning go away in places you really need the eq there is if(defined $foo && $foo eq 'bar')

                - Ant
                - Some of my best work - (1 2 3)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://581676]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-08-09 19:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?