Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 chanting in the Monastery: (7)
As of 2014-08-31 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls