in reply to Re^2: A problem with dash typography
in thread A problem with dash typography

If you put:

use utf8;
at the top of the script, this tells Perl that your source code contains UTF8-encoded unicode characters.

If you want to read and write UTF8, do this at the top of the script:

binmode STDIN, ':utf8'; binmode STDOUT, ':utf8';
Hope this helps!

The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^4: A problem with dash typography
by hsmyers (Canon) on Sep 10, 2015 at 16:54 UTC
    use utf8; is now in my new file template! And the change to STDIN is good, but what I need is a change to read IO in general...

    --hsm

    "Never try to teach a pig to sing...it wastes your time and it annoys the pig."