Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I know the "$" matches the last character but not sure how to eliminate the ",". Please advise.s/$myNames,$/$myNames/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Eliminating last comma
by japhy (Canon) on Jun 21, 2006 at 13:13 UTC | |
|
Re: Eliminating last comma
by Fletch (Bishop) on Jun 21, 2006 at 13:34 UTC | |
|
Re: Eliminating last comma
by dorward (Curate) on Jun 21, 2006 at 13:13 UTC | |
|
Re: Eliminating last comma
by davorg (Chancellor) on Jun 21, 2006 at 13:13 UTC | |
|
Re: Eliminating last comma
by sgifford (Prior) on Jun 21, 2006 at 16:03 UTC | |
|
Re: Eliminating last comma
by dsheroh (Monsignor) on Jun 21, 2006 at 15:23 UTC | |
|
Re: Eliminating last comma
by Joost (Canon) on Jun 21, 2006 at 13:14 UTC | |
by Anonymous Monk on Jun 21, 2006 at 13:21 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |