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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 4a305e in the box below so that we can be sure you are a human.