How would I remove only the *last* quote from this string?

        my $string = qq(one" two" three" four");


The result I am looking for replaces this:

        one" two" three" four"


with this:

        one" two" three" four


This did not work:

        $string =~ s/\"$//; # replace last " with nothing


-----
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED]

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.349 / Virus Database: 195 - Release Date: 4/15/2002


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to