Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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
Replies are listed 'Best First'.
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 examining the Monastery: (14)
As of 2015-07-31 19:08 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 (280 votes), past polls