ganeshkumar has asked for the wisdom of the Perl Monks concerning the following question:

what is the use of cg modifier m// in operator.

Replies are listed 'Best First'.
Re: cg modifier in m operator
by holli (Abbot) on Aug 13, 2009 at 12:43 UTC
    Read perlretut, the section about "global matching".


    holli

    You can lead your users to water, but alas, you cannot drown them.

      Thank you. It is useful tutorial.

Re: cg modifier in m operator
by ikegami (Patriarch) on Aug 13, 2009 at 13:40 UTC
    Check out perlfaq6 where it says "Typically you use the \G anchor with the c flag when you want to try a different match if one fails"
Re: cg modifier in m operator
by Anonymous Monk on Aug 13, 2009 at 12:48 UTC
Re: cg modifier in m operator
by sanku (Beadle) on Aug 26, 2009 at 05:19 UTC
    g- global c- confirmation