There are alot of ways to do this. One way to do it with a regex is
Code:
$string =~ s/^"|"$//g;
The '[tt]^"[/tt]' matches the quote at the start of the string and the '[tt]"$[/tt]' matches the quote at the end--both of which get stripped off.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.