Who uses WX instead of TK

2015-04-02 Thread Sherman Willden
Or do you use it with TK? I downloaded Padre and found the examples which included WX. WX seems to be easier to use than TK. Just wondering who uses WX and why. Thank you; Sherman

Re: Is DBD installed with DBI?

2015-03-24 Thread Sherman Willden
Thank you, Shlomi. I am on Ubuntu when I try to install. I am looking at the links and I see there is also a DBD::msql. I will try that. Sherman On Tue, Mar 24, 2015 at 1:37 AM, Shlomi Fish wrote: > Hi Sherman, > > On Mon, 23 Mar 2015 14:42:54 -0600 > Sherman Willden wrote: >

Is DBD installed with DBI?

2015-03-23 Thread Sherman Willden
I am trying to use perl with mysql. I have a tutorial open which prompted me to perform the following. $ sudo perl -MCPAN -e shell cpan> install DBI cpan[2]> install DBD::mysql DBI installed. The 'install DBD::mysql' failed. Is DBD part of DBI? What am I missing? The DBD run is in the attached i

Why doesn't this script error?

2015-03-14 Thread Sherman Willden
I am new to Eclipse and Epic so I wrote the below script which I thought would error but it runs. Why? #!/usr/bin/perl use 5.18.2; print "Hello World \n"; print this 1 Thank you; Sherman

Eclipse - How do I get back to the first splash screen

2015-03-13 Thread Sherman Willden
I downloaded Eclipse and I was looking at the screens and in general just messing with Eclipse. Now I can't find the first splash screen with the tutorials, samples, and such. Also is there a help button on Eclipse? Thank you; Sherman

Re: Please check my logic

2014-07-21 Thread Sherman Willden
Thank you all. I got off of windows 7 and went to my Ubuntu. Great stuff. Now I have to go back to windows 7 to take the course. Sherman On Mon, Jul 21, 2014 at 4:14 PM, Paul Johnson wrote: > On Mon, Jul 21, 2014 at 10:05:29PM +, Danny Wong (dannwong) wrote: > > > Do it the perl way, hash

Please check my logic

2014-07-21 Thread Sherman Willden
I checked CPAN for remove duplicate lines and only found Code::CutNPaste which doesn't sound like what I want. So I will build what I want although I'm sure it's out there somewhere. I have several files and I attached one of them. I want to sort the file and remove duplicate lines. The file is a

Re: Brackets in scalar and array

2014-05-29 Thread Sherman Willden
Maybe I'm missing the point but isn't the following code the problem's answer? Please let me know if I am off base. Thank you; Sherman #!/usr/bin/perl my @test = "a b c"; ($test)=(@test); print "\$test: $test\n"; @test = "a b c"; $test = @test; print "\$test: $test\n"; # output lines after

Append new line at end of non-quoted text

2014-05-23 Thread Sherman Willden
Disclaimer: I am 67 and not in school. I am doing this for my own satisfaction. How do I get a new line at the end of a non-quoted text. I am doing the following: Use Math::Trig; print pi * 2; print "\n"; How do I get the new line on the same line of code? I could do my $my_pi_times_two = pi * 2

Do 5.18.2 functions is and isnt exist?

2014-04-19 Thread Sherman Willden
I have been reading Modern Perl and in several instances they use is and isnt. Are these functions available in Perl? I looked at http://perldoc.perl.org/index-functions.html and couldn't find them. Two usage examples are shown below. isnt( $i, 'pig', '$i overwritten with a number' ); is( $nums[9

How do I update CPAN?

2013-05-14 Thread Sherman Willden
I received the below message. Now what? I am not familiar with install. Thank you; Sherman Fetching with HTTP::Tiny: http://httpupdate35.cpanel.net/CPAN/modules/02packages.details.txt.gz Reading '/home/sherman/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Tue, 14 M

Re: Lines written to a file are not contiguous

2013-05-10 Thread Sherman Willden
On 07/05/2013 20:00, Sherman Willden wrote: > > foreach my $file ( @docfiles ) { >> my ( $write, $read ); >> > > What were they meant for? > > -- > Ruud > > > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > F

Re: Lines written to a file are not contiguous

2013-05-09 Thread Sherman Willden
Thank you, David. I thought about doing cat but I thought it would have to be a system call. Sherman On Tue, May 7, 2013 at 9:26 PM, David Christensen wrote: > On 05/07/13 11:00, Sherman Willden wrote: > >> ... I downloaded the >> >> Oreilly Programming Perl Version

Re: Lines written to a file are not contiguous

2013-05-07 Thread Sherman Willden
Thank you all. It will take a day or two to get through all of this Sherman On Tue, May 7, 2013 at 1:52 PM, Jim Gibson wrote: > > On May 7, 2013, at 11:00 AM, Sherman Willden wrote: > > > Lines written to a file are not contiguous. > > > > First I will describ

Lines written to a file are not contiguous

2013-05-07 Thread Sherman Willden
Lines written to a file are not contiguous. First I will describe what I want the script to perform and then I will include the script at the end of this message. I downloaded the Oreilly Programming Perl Version 4 examples. There are 30 directories with 2211 files. I want each chapter to have a

Can I use perlbrew to install to /usr/share/perl?

2013-04-13 Thread Sherman Willden
I installed perlbrew then I used it to install v5.16.3. That installed to my home directory. I read about installing to /opt. Do I just substitute /usr/share/perl where I presently have v5.14.2 for /oopt? Will that also install to all the other required places? Will it install the perl executable t