Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Regex syntax frustration

by bigmacbear (Monk)
on May 26, 2004 at 23:35 UTC ( [id://356757]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex syntax frustration
in thread Solved: Regex syntax frustration

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. ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found