Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: Regex syntax frustrationby bigmacbear (Monk) |
on May 26, 2004 at 23:35 UTC ( [id://356757]=note: print w/replies, xml ) | Need Help?? |
I tried to do that by including the several lines preceding the regex (the while loop) in the test program, which compiled and ran. So I must not have grabbed code back far enough to include the error. I cut and pasted the entire subroutine containing the while loop. Lo and behold I found the problem: this is a CGI script (which is why taint checking is on) and I forgot the $ on my CGI object, five lines above my while loop. So instead of "$q->p()" I had "q->p()". Aargh. The lesson to be learned here is when you are done looking for missing semicolons and string delimiters, look next for missing dollar signs on variables (especially objects). Thanks much for breaking me out of a "tight mental loop" around that damned regex. ;-)
In Section
Seekers of Perl Wisdom
|
|