Using say in Padre 0.94

2012-11-15 Thread boB Stepp
first version from the Windows command line (which is using Strawberry Perl 5.16 instead of Padre's 5.14), using c:\perl helloworld.plx I get no error messages and all works well. Why does Padre require the insertion of the use pragma? Thanks! boB Stepp -- To unsubscribe, e-mail: beginners-

Re: Using say in Padre 0.94

2012-11-16 Thread boB Stepp
On Fri, Nov 16, 2012 at 9:19 AM, timothy adigun <2teezp...@gmail.com> wrote: > >Please also check this http://perldoc.perl.org/functions/say.html >> This makes sense now. However, I am still puzzled why if I run the script from the command line (not Padre) with Strawberry 5.16, say works witho

Re: Using say in Padre 0.94

2012-11-16 Thread boB Stepp
On Fri, Nov 16, 2012 at 12:44 PM, Brandon McCaig wrote: > On Fri, Nov 16, 2012 at 10:10:14AM -0600, boB Stepp wrote: >> However, I am still puzzled why if I run the script from the >> command line (not Padre) with Strawberry 5.16, say works >> without a hitch without the

Cannot install Tk from CPAN using Strawberry Perl 5.16

2012-11-18 Thread boB Stepp
I am running Win7Pro-64bit and using Strawberry Perl 64 bit version 5.16. When I attempt to use "install Tk" from Strawberry Perl's "cpan>" prompt I get two instances of "perl.exe not responding". After responding OK to the first, activity resumes, but after the second time I get the following (I t

Re: Cannot install Tk from CPAN using Strawberry Perl 5.16

2012-11-19 Thread boB Stepp
On Sun, Nov 18, 2012 at 9:19 PM, boB Stepp wrote: > I am running Win7Pro-64bit and using Strawberry Perl 64 bit version > 5.16. When I attempt to use "install Tk" from Strawberry Perl's > "cpan>" prompt I get two instances of "perl.exe not responding"

use utf-8 results in error

2012-11-22 Thread boB Stepp
Win7-64bit. DWIM Perl, Strawberry Perl 5.14. Padre 0.96. I am using the 6th edition of Learning Perl. It recommends adding use utf-8 to all programs. So I gave it my first try: #!/usr/bin/env perl use utf-8; print "Hello world"; This gives the result: E:\Programs\Perl\LearningPerl>perl hello

Re: use utf-8 results in error

2012-11-22 Thread boB Stepp
On Thu, Nov 22, 2012 at 11:54 PM, ranveer raghuwanshi wrote: > Its not utf-8 its utf8 without hyphen(-) > Thank you, Ranveer! Perhaps I should not do my Perl studies as the wee morning hours (here) approach. The obvious once again escapes me... boB -- To unsubscribe, e-mail: beginners-unsubscr.

How to display UTF-8 output to command shell in Win7?

2012-11-28 Thread boB Stepp
As I have mentioned in an earlier posting, I am working my way (slowly) through Learning Perl, 6th edition. In this edition it uses UTF-8 throughout. So I have been trying to make this happen in my Windows 7 Pro 64-bit environment. Currently the only way I have been able to display Unicode charact

Re: How to display UTF-8 output to command shell in Win7?

2012-12-01 Thread boB Stepp
On Thu, Nov 29, 2012 at 7:00 AM, timothy adigun <2teezp...@gmail.com> wrote: > Hi, > Please check my comments below: > > >> > system "chcp 65001"; > > > binmode STDOUT,':encoding(UTF-8)';## add this This suppresses the wide character warning. Thanks. boB -- To unsubscribe, e-mail: beginners

Re: How to display UTF-8 output to command shell in Win7?

2012-12-01 Thread boB Stepp
On Thu, Nov 29, 2012 at 8:08 AM, Charles DeRykus wrote: > >>even when warnings is turned OFF, you will get the unwanted warning >> > > Just a guess because I don't know what chcp is all about... > but it might be informational rather than an actual warning. > I think that you are correct ab

Re: How to display UTF-8 output to command shell in Win7?

2012-12-01 Thread boB Stepp
Hey Tim, On Sat, Dec 1, 2012 at 10:34 PM, timothy adigun <2teezp...@gmail.com> wrote: > Hi bOB, > Please check my comments below > > It is very possible, just in 3 steps. > > Here is what you had always wanted to do: > 1. Open up your command Prompt, then > > 2. You will need to change your

Re: How to display UTF-8 output to command shell in Win7?

2012-12-01 Thread boB Stepp
On Sat, Dec 1, 2012 at 11:58 PM, Charles DeRykus wrote: > On Sat, Dec 1, 2012 at 8:50 PM, boB Stepp wrote: >> >> What I would like to do is make chcp 65001 the default behavior of the >> command console without having to either retype it manually or place >> it in eac

Re: How to display UTF-8 output to command shell in Win7?

2012-12-02 Thread boB Stepp
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

Re: How to display UTF-8 output to command shell in Win7?

2012-12-02 Thread boB Stepp
On Sun, Dec 2, 2012 at 6:49 PM, boB Stepp wrote: >> >> system("chcp 65001>nil");# this works for me Using OS Win 7 32bits >> >>> > binmode STDOUT, ":encoding(UTF-8)"; >>> > print "\x{03B1}\x{03C9}\n"; > > Thi