jockel has asked for the wisdom of the Perl Monks concerning the following question:
it loops endlessly..... =(while ($string =~ /(\s+\|)/) { $string =~ s/$1/\|/; }
Have I missed some basic regexp rule?while ($string =~ /(\s+\;)/) { $string =~ s/$1/\;/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp, substitution and the "pipe symbol"
by Abigail-II (Bishop) on Jan 29, 2004 at 16:14 UTC | |
by jockel (Beadle) on Jan 30, 2004 at 13:51 UTC | |
|
Re: regexp, substitution and the "pipe symbol"
by Limbic~Region (Chancellor) on Jan 29, 2004 at 16:16 UTC | |
by Abigail-II (Bishop) on Jan 29, 2004 at 16:21 UTC | |
|
Re: regexp, substitution and the "pipe symbol"
by blue_cowdawg (Monsignor) on Jan 29, 2004 at 16:20 UTC |