We don't bite newbies here... much | |
PerlMonks |
Re^4: The simplest possible pattern match defeats meby logan (Curate) |
on May 23, 2013 at 17:47 UTC ( [id://1034997]=note: print w/replies, xml ) | Need Help?? |
1) Yes, the fact that the error is for a failed pattern match and not a failed 'eq' is doubly confusing. That's one reason I posted to Perlmonks. Check my profile, Rolf. I've been coding perl for 15 years. That's not a "Don't question me, I know what I'm doing" statement. It's an "I've been doing this for 1/3 of my life. Why is this simple thing suddenly so hard?" statement.
2) I'm sure I'm debugging the right file because when I add or remove lines from the file the line numbers in the output change. Moreover, if I change the text around the offending code those changes are reflected in the output. 3) I'm using perl v5.8.8 built for x86_64-linux-thread-multi. I added a couple of extra checks and the results do point me in a direction. When I assign a string value to $oldString and test it with an eq (lines 80 - 89), no problem. If I assign the value with a call to $oldString = $allChanges->[$k]->getOldString(); the problem manifests. That's even more curious, because the call to print Dumper($oldString); at line 95 prints a simple string. Results
-Logan
In Section
Seekers of Perl Wisdom
|
|