Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How can I debug a weird "Undefined subroutine..." error that should be defined.

by Corion (Patriarch)
on Mar 01, 2015 at 09:01 UTC ( [id://1118245]=note: print w/replies, xml ) Need Help??


in reply to How can I debug a weird "Undefined subroutine..." error that should be defined.

Please read your code closer. Perl and all the diagnostics are correct, but if you're not reading them closely, they won't help.

run_star_commands run_star_commmands

Replies are listed 'Best First'.
Re^2: How can I debug a weird "Undefined subroutine..." error that should be defined.
by dly (Beadle) on Mar 01, 2015 at 09:56 UTC

    You're totally right! That bug's fixed. I even copied and pasted :OVERRIDE_BUILD a couple of times to avoid this problem, which I've even run into before, but never the name of the subroutine. Now I wish I had.

    This isn't even the first time I've done this. I once submitted a bug report where perl was messing with one of my variables, but the problem turned out to be caused by a bug in my test case. That one lives on in infamy in perl's bug queue somewhere with all the other bugs that aren't actually bugs.

    It's so easy to get frustrated, and fixating on something that's not actually the problem. Oops...I'll keep this in mind the next time I think perl is wrong and I am right.

    That being said Sometimes, it really IS a bug in Perl; however, the bug in question is on a totally different level than my typo of a bug.

    Thanks for reading my code more carefully than I was.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found