Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: A problem with dash typography

by hsmyers (Canon)
on Sep 09, 2015 at 15:03 UTC ( [id://1141430]=note: print w/replies, xml ) Need Help??


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

Sorry about the typos...that aside I believe you have nailed the necessary magic with the ':utf8'...excepting in this case it is required before I read the file. Will see what happens, thanks!

--hsm

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

Replies are listed 'Best First'.
Re^3: A problem with dash typography
by 1nickt (Canon) on Sep 09, 2015 at 16:03 UTC

    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.
      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."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1141430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-03-19 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found