Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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;

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://581662]
[Corion]: choroba++ # fixed width
marto has a Dirty_Mind on vinyl
[Corion]: Heh. The upside of this phone call was at least commendations from my cow-orkers on how clam I stayed and how I always brought the topic back to my priorities and the established processes of $work (them only getting half of the conversation).

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2017-08-17 13:06 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (287 votes). Check out past polls.