Perl (Scripting) - Dealing with Microsoft Word curly fancy smart quotes

by
Jeremy Canfield |
Updated: January 05 2021
| Perl (Scripting) articles
Be aware that when curly / fancy / smart double quotes are used on the command line, the curly double quotes will be included in the value.
perl example.pl --name “Jeremyâ€
When straight double quotes are used on the command line, the double quotes will not be included in the value.
perl example.pl --name "Jeremy"
One option is to remove curly double quotes.
$options->get_result('name') =~ s/“|â€//g;
Did you find this article helpful?
If so, consider buying me a coffee over at