La12 has asked for the wisdom of the Perl Monks concerning the following question:
Everything works fine, but does anyone know if there is a more efficient (less code) way of achieving the proper result? Thanks for your time.while ($line =~ /\{\{/|/\{\}/){ $line =~ s/\{\{/\{NA\{/; $line =~ s /\{\}/\{NA\}/; };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Help with Substitution
by japhy (Canon) on Jun 28, 2001 at 20:28 UTC | |
by La12 (Sexton) on Jun 28, 2001 at 22:19 UTC | |
Re: Help with Substitution
by bikeNomad (Priest) on Jun 28, 2001 at 20:15 UTC | |
Re: Help with Substitution
by malloc (Pilgrim) on Jun 28, 2001 at 20:24 UTC | |
by Sifmole (Chaplain) on Jun 28, 2001 at 20:42 UTC | |
Re: Help with Substitution
by TravelByRoad (Acolyte) on Jun 28, 2001 at 21:47 UTC | |
by John M. Dlugosz (Monsignor) on Jun 29, 2001 at 18:26 UTC | |
by tye (Sage) on Jun 29, 2001 at 19:49 UTC | |
by John M. Dlugosz (Monsignor) on Jun 29, 2001 at 23:10 UTC |