in reply to Re: A way to avoid repeated conditional loops
in thread A way to avoid repeated conditional loops

It would be a nice trick, but the match is just ignored after the first time, so the conditions keeps getting evaluated.

Thanks though

  • Comment on Re^2: A way to avoid repeated conditional loops

Replies are listed 'Best First'.
Re^3: A way to avoid repeated conditional loops
by pvaldes (Chaplain) on Aug 26, 2011 at 00:45 UTC
    =~ s/^alpha/^#alpha/ ... and now do what you want with the whole file