i want to remove all punctuation from a string, but keep spaces. is this the best way to do it?
$fixlink =~ s/[\s]/qqqqq/g;
$fixlink =~ s/[\W]//g;
$fixlink =~ s/qqqqq/ /g;
Code:
$fixlink = $EVENT->{details}->{'title'}; $fixlink =~ s/[\s]/qqqqq/g;
$fixlink =~ s/[\W]//g;
$fixlink =~ s/qqqqq/ /g;