Hi boB,

On Sun, 2 Dec 2012 18:49:26 -0600
boB Stepp <robertvst...@gmail.com> wrote:

> On Sun, Dec 2, 2012 at 12:57 AM, timothy adigun <2teezp...@gmail.com> wrote:
> 
> >
> >    Ofcourse, one can argue that there is nothing wrong with that. But I
> > think is not "RIGHT" to just discard the output return by the backtick in a
> > void context.
> > In that light I concur with Charles DeRykus, that is better on uses system()
> > function.
> > So, the above can be written as thus:
> >
> >  system("chcp 65001>nil");    # this works for me Using  OS Win 7 32bits
> >
> >> > binmode STDOUT, ":encoding(UTF-8)";
> >> > print "\x{03B1}\x{03C9}\n";
> 
> This works for me as well. Thanks, Tim and Charles!
> 
> I am not sure I understand all that is going on, however. I am
> assuming that system("chcp 65001>nil") is redirecting the resulting
> informational message from executing chcp 65001 to some sort of null
> file that does not display at the command prompt?
> 
> One thing that is bothering me from this thread is that I am beginning
> to feel that it is impossible to write a Perl script involving Unicode
> use that will seamlessly run on both Unix and Windows systems. 

You can always detect the operating system at run-time using something like
https://metacpan.org/module/Devel::CheckOS and behave differently.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/

Yesterday I asked one of my students if she knew what an encyclopedia is, and
she said: β€œIs it something like Wikipedia?”.
        β€” http://twitter.com/alisonclement/status/8421314259

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to