in reply to Re: question of substitution
in thread question of substitution

Got it! Another question: to use /x or not to sue /x Check this code
$program =~ s { /\* .*? \*/ } []gsx;
this will remove any comment in a c program. What's the role of /x (I believe it is for extended regulars expressions)??

Replies are listed 'Best First'.
Re^3: question of substitution
by sh1tn (Priest) on Feb 27, 2005 at 12:35 UTC
    /x modifier - 'Ignore (most) whitespace and permit comments in pattern'

    perldoc perlre