in reply to Normal regexes stop working

not sure if this is your problem but sounds like it. i don't have direct experience with FCGI::Engine, but a couple of CGI perl apache modules i used a while ago...you need to make sure to initialize variables, or an instance/session can pickup values from previous one. so in the end init all variables or pick up their values from a form/url via param.
the hardest line to type correctly is: stty erase ^H

Replies are listed 'Best First'.
Re^2: Normal regexes stop working
by yegg (Acolyte) on Oct 24, 2010 at 22:39 UTC
    Thx--I haven't figured out the error yet, but I did make some progress.

    I found that if $q was set to $VAR1 = "\n\302\240"; the time before then it doesn't work thereafter.

      At some point you are saying your regex fails when you do:
      $x =~ /$y/;
      yes? That being the case, then do this for debugging:
      my $match = $x =~ /$y/; printf "x=%s, y=%s\n", $x, $y unless $match;
      So this will print out something every time they don't match, which is the case you are looking for, right?