http://qs321.pair.com?node_id=1120943


in reply to Re^3: Fix whitespace around symbols
in thread Fix whitespace around symbols

Hi,

I don't have a standard text, but the problem appears when I have two same symbols in the same sentence. For instance,

<p>Is this a perl script/program or a java script/program?</p> <p>C'est un perl script / programme ou un script / programme?</p>

Best

Replies are listed 'Best First'.
Re^5: Fix whitespace around symbols
by Corion (Patriarch) on Mar 23, 2015 at 08:45 UTC

    Aaah, now I understand. There was the /g flag missing when initializing the %symbols hash. As soon as you add it to the three m// operators, the program works. See perlop and perlre for more information on the /g flag.

      Hi,

      I have added the /g and it works!

      Thanks for your time and consideration