Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by reneeb (Chaplain)
on Nov 01, 2006 at 12:22 UTC ( [id://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;

Replies are listed 'Best First'.
Re^2: Why "use of uninitialized value" warning comes?
by ikegami (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://581662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found