Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Use of unintialized value in pattern match (m//) at x.pl line 123

by gibsonca (Beadle)
on May 14, 2009 at 22:20 UTC ( #764165=note: print w/ replies, xml ) Need Help??


in reply to Re: Use of unintialized value in pattern match (m//) at x.pl line 123
in thread Use of unintialized value in pattern match (m//) at x.pl line 123

I had modified my code to clearly? show myself that the variables were defined. I had no other reason why this particular 'if' statement would generate a message. The script does not fail, just generates this message. So the first if-else was just debug. The problem seems more related to the =~ compare, but again, never seen this message before on something that seemed to work in all other aspects/places. I don't want to say this, but it used to work. ;-)


Comment on Re^2: Use of unintialized value in pattern match (m//) at x.pl line 123
Re^3: Use of unintialized value in pattern match (m//) at x.pl line 123
by gibsonca (Beadle) on May 15, 2009 at 20:26 UTC
    Problem solved. The message identifies the problem at line 123, the beginning of an if-elsif-elsif-else piece of code. The problem occurred in a subsequent elsif branch, were a variable was mistyped by me. Live and learn.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (15)
As of 2014-09-23 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (234 votes), past polls