in reply to Re: search hang trouble
in thread search hang trouble

ah, i found it buried in perldoc perlretut:
If you don't want the position reset after failure to match, add the "//c", as in "/regexp/gc".
odd that it does not appear to be mentioned in perldoc perlre..

Replies are listed 'Best First'.
Re^3: search hang trouble
by japhy (Canon) on Sep 01, 2006 at 21:47 UTC
    Because it's not a regex flag, per se. It's a pattern matching operator flag. perlre only covers /i, /m, /s, and /x.

    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
      "man perlop" has the search options covered.

      I am starting to think that it may not be hung but searching for a long long time (many 10s of minutes). A product of the cascaded non-greedy searches failing at the last pattern. I will run it and see if it ever finishes. The file I am parsing is pretty small (few thousand lines) so it should finish if it can finish.