How can I remove trailing commas?
- From: Jame Pearl <jpearl342@xxxxxxxxx>
- Date: 30 Jan 2006 11:16:36 -0000
How can I remove any trailing commas from the end of $var?
I tried using
$var =~ s/,+$//
but it didn't work.
.
- Follow-Ups:
- Re: How can I remove trailing commas?
- From: Glenn Jackman
- Re: How can I remove trailing commas?
- From: Abigail
- Re: How can I remove trailing commas?
- From: Dr.Ruud
- Re: How can I remove trailing commas?
- From: Jürgen Exner
- Re: How can I remove trailing commas?
- From: Paul Lalli
- Re: How can I remove trailing commas?
- Prev by Date: FAQ 5.20 Why can't I just open(FH, ">file.lock")?
- Next by Date: Re: Embedding private .pm files into a script
- Previous by thread: FAQ 5.20 Why can't I just open(FH, ">file.lock")?
- Next by thread: Re: How can I remove trailing commas?
- Index(es):