in reply to Re: efficient char escape sequence substitution
in thread efficient char escape sequence substitution

Can you help me understand your regex modifiers?
gee
Where in perldoc can I find an explanation?
  • Comment on Re^2: efficient char escape sequence substitution

Replies are listed 'Best First'.
Re^3: efficient char escape sequence substitution
by Roy Johnson (Monsignor) on May 27, 2005 at 23:35 UTC
    Documentation.

    g means global replace. e means eval the substitution space before substituting it. Repeating the e means eval it again. So it starts out looking like the string qr("\\t"); after an eval, it looks like "\t", and after a 2nd eval, it's just a tab. (Actually, it may have captured more than just the tab, but anything after the tab is left intact.)


    Caution: Contents may have been coded under pressure.