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


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

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.

Replies are listed 'Best First'.
Re^6: Fix whitespace around symbols
by corfuitl (Sexton) on Mar 23, 2015 at 15:34 UTC

    Hi,

    I have added the /g and it works!

    Thanks for your time and consideration