Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by reneeb (Chaplain)
on Nov 01, 2006 at 12:22 UTC ( #581662=note: print w/ replies, xml ) Need Help??


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

use strict; use warnings; my $incr=0; my @need = qw(sanjay samir sanjay sudha jasmin sanjmay); my @array1; for my $elem(@need) { if ($elem=~ qr/^sanj/){ push @array1,$elem } } print @array1;


Comment on Re: Why "use of uninitialized value" warning comes?
Download Code
Re^2: Why "use of uninitialized value" warning comes?
by ikegami (Pope) on Nov 01, 2006 at 16:28 UTC
    qr/^sanj/ should be /^sanj/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-07-03 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls