Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: initializing internal regex variables?

by moritz (Cardinal)
on Nov 17, 2009 at 07:45 UTC ( [id://807632]=note: print w/replies, xml ) Need Help??


in reply to initializing internal regex variables?

My guess (which may be completely wrong) is that some state variables used by the regular expression engine are not being reinitialized upon subsequent displays of the table

If these tables are built in different HTTP requests, and you really use CGI as you wrote (and not FastCGI or mod_perl), then each of these requests is handled in a different process. There's no way an internal variable can accidentally be persistent across two processes, unless your OS is really buggy.

Any insight you may have which explains this odd behavior would certainly be appreciated.

Chances are that on subsequent requests the table is different, and your regex therefore works differently.

I recommend not to build the table wrongly, and then correct it later on, but instead build it in its desired form straight away.

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re: initializing internal regex variables?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-24 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found