Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
for eg. i have a $txt = "This_is_a_song_.mp3";
I want it to be "This_is_a_song.mp3"; How do i remove the last underscore.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing underscores.
by gellyfish (Monsignor) on May 06, 2005 at 15:17 UTC | |
|
Re: Removing underscores.
by davidrw (Prior) on May 06, 2005 at 15:50 UTC | |
|
Re: Removing underscores.
by Transient (Hermit) on May 06, 2005 at 15:19 UTC | |
|
Re: Removing underscores.
by jeffa (Bishop) on May 06, 2005 at 17:01 UTC | |
|
Re: Removing underscores.
by samizdat (Vicar) on May 06, 2005 at 15:57 UTC | |
|
Re: Removing underscores.
by Anonymous Monk on May 06, 2005 at 17:46 UTC | |
|
Re: Removing underscores.
by TedPride (Priest) on May 06, 2005 at 22:54 UTC |