in reply to Unicodeness and deprecated -C on shebang

-C63 is completely unreadable. Please use -CSDA instead. It's a bit better.

You can do two of those letters using open:

use open IO => ':encoding(UTF-8)'; # -CD use open ':std' => ':encoding(UTF-8)'; # -CS

But the simplest solution is not change anything and actually use the shebang line by launching the script directly, not as an argument to perl.

Replies are listed 'Best First'.
Re^2: Unicodeness and deprecated -C on shebang
by wanradt (Scribe) on Apr 17, 2009 at 20:14 UTC

    Could you, please, be more specific about your last sentence? How to launch directly?

    Nġnda, WK
      Type script.pl, not perl script.pl

        That's how i do. If i had call "perl script.pl", i could insert -C here too. But i don't and in some situations this way is even not possible, AFAIK, for example running script as CGI. My question is: how to call -C (or equivalent) inside of code, cause on first line this is deprecated?

        Nġnda, WK