in reply to Re: Extracting the number of repetitions
in thread Extracting the number of repetitions from a regex

Sorry, Anonymous_Monk -

I don't get it. Can you please switch your output to verbose mode for the Perl-underprivileged?

It looks as if the counts in the evaluation of the regex work fine but somehow the result does not get transferred to the external variables ... not sure what this tells me, though.

Could you please expand?

Thanks - Pat

Replies are listed 'Best First'.
Re^3: Extracting the number of repetitions
by Anonymous Monk on Dec 18, 2008 at 16:40 UTC
    Sorry, I was wrong :( Try use re 'debug'; for ideas
      Thanks, Anonymous Monk ...

      The regex debug output does indeed provide lots of feedback ... a look right into the inner workings of the regex engine. I have to admit, however, I am not sure how this information contributes to solving my initial problem - apart, maybe, from the fact that it only contains one Compiling RExstatement statement - contrary to my initial belief that the regex would get compiled anew on each loop-iteration.

      Let me know if I am overlooking anything here: