Re: Math::GMP

2010-02-25 Thread Dave Tang
Hi Shlomi. OK, seems like it's Red Hat Enterprise Linux 5 / CentOS 5. You can find a package for Net-SSH-Perl for them on the DAG package repository: http://dag.wieers.com/rpm/packages/perl-Net-SSH-Perl/ You should install from it. You should install GMP using yum: "yum install gmp-devel" or

Re: Math::GMP

2010-02-25 Thread Dave Tang
On Thu, 25 Feb 2010 19:54:13 +1000, Salvador Fandino wrote: On 02/25/2010 07:14 AM, Dave Tang wrote: Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an error.

Re: How to print HTML documents from perl script?

2010-02-25 Thread Rene Schickbauer
Hi! That will work for a small number of files. If you want to automate the process, then you need to either convert the HTML to a printer-ready file, or automate sending the file to a browser. A very crude (but quite effective) way is to use the X11::GUITest or Win32::GuiTest module. You w

Re: how do I replace all the spaces in a string with +

2010-02-25 Thread Jenda Krynicky
From: Erik Lewis > Thanks that probably explains my higher than expected ungeocoded > rate. Two weeks of playing with perl and I feel like I know less than > when I started. The more you learn the more you find out you know nothing ;-) This feeling is to be expected. Don't let it overwhelm

Re: array of anonymous hash?

2010-02-25 Thread Shlomi Fish
On Thursday 25 Feb 2010 17:09:02 Rob Dixon wrote: > Shlomi Fish wrote: > > ... WxWidgets has wxGlade ... > > Does it? Thanks Shlomi I am very fond of Wx and didn't know about this. > You're welcome. I think I've tried it and wasn't really impressed and returned to a standard writing-GUI-code-in

Re: Math::GMP

2010-02-25 Thread Dave Tang
On Thu, 25 Feb 2010 19:54:13 +1000, Salvador Fandino wrote: On 02/25/2010 07:14 AM, Dave Tang wrote: Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an error.

Re: Math::GMP

2010-02-25 Thread Salvador Fandino
On 02/25/2010 07:14 AM, Dave Tang wrote: Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an error. Here's the transcript. May someone shed some light? Net::SSH::

Re: array of anonymous hash?

2010-02-25 Thread Rob Dixon
Shlomi Fish wrote: ... WxWidgets has wxGlade ... Does it? Thanks Shlomi I am very fond of Wx and didn't know about this. Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: How to print HTML documents from perl script?

2010-02-25 Thread Dr.Ruud
boll wrote: Is there a module that will create printable HTML, Look into WebKit. (and Titanium, while you are at it) -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: array of anonymous hash?

2010-02-25 Thread Shlomi Fish
Hi raphael! I believe you meant to CC this to the list, so I'm CCing it (I don't see anything in your reply that needs to be in private). On Thursday 25 Feb 2010 13:42:07 raphael() wrote: > On Thu, Feb 25, 2010 at 4:50 PM, Shlomi Fish wrote: > > Hi Raphael! > > > > On Thursday 25 Feb 2010 12:5

Re: how do I replace all the spaces in a string with +

2010-02-25 Thread Erik Lewis
Thanks that probably explains my higher than expected ungeocoded rate. Two weeks of playing with perl and I feel like I know less than when I started. On Feb 25, 2010, at 3:31 AM, "Jenda Krynicky" wrote: From: Erik Lewis print "Enter your address\n"; chomp (my $rawaddress = <>); my

Re: array of anonymous hash?

2010-02-25 Thread Rob Dixon
raphael() wrote: My BAD :( THERE IS NO FIRST ELEMENT IN A HASH!! PLEASE FORGIVE ME. I AM IN A THICK OF EVERYTHING TODAY. LET ME REPHRASE -- HOW DO I LOOP OVER THE ANONYMOUS HASH WHICH IS INSIDE AN ARRAY? use strict; use warnings; my @links = ({ name1 => 'http://www.abc.com/data

Re: array of anonymous hash?

2010-02-25 Thread Rob Dixon
raphael() wrote: use strict; use warnings; use Data::Dumper; my @links = ({ name1 => 'http://www.abc.com/data/a/000/name1.txt', name2 => 'http://www.abc.com/data/a/000/name2.txt', }); for my $element ( @links ) { for my $name ( sort keys %$element ) { print "$name --> ${$element

Re: array of anonymous hash?

2010-02-25 Thread Shlomi Fish
Hi Raphael! On Thursday 25 Feb 2010 12:59:33 raphael() wrote: > My BAD :( > > THERE IS NO FIRST ELEMENT IN A HASH!! > > PLEASE FORGIVE ME. I AM IN A THICK OF EVERYTHING TODAY. > > LET ME REPHRASE -- > HOW DO I LOOP OVER THE ANONYMOUS HASH WHICH IS INSIDE AN ARRAY? OK, no need to use all-caps

Re: array of anonymous hash?

2010-02-25 Thread Shlomi Fish
Hi Raphael! Welcome to Perl. On Thursday 25 Feb 2010 12:41:30 raphael() wrote: > use strict; > use warnings; It's good that you're using strict and warnings; > use Data::Dumper; > > my @links = > ({ > name1 => 'http://www.abc.com/data/a/000/name1.txt', > name2 => 'http://www.abc.com/data/a/000

array of anonymous hash?

2010-02-25 Thread raphael()
My BAD :( THERE IS NO FIRST ELEMENT IN A HASH!! PLEASE FORGIVE ME. I AM IN A THICK OF EVERYTHING TODAY. LET ME REPHRASE -- HOW DO I LOOP OVER THE ANONYMOUS HASH WHICH IS INSIDE AN ARRAY? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@

array of anonymous hash?

2010-02-25 Thread raphael()
use strict; use warnings; use Data::Dumper; my @links = ({ name1 => 'http://www.abc.com/data/a/000/name1.txt', name2 => 'http://www.abc.com/data/a/000/name2.txt', }); for my $element ( @links ) { for my $name ( sort keys %$element ) { print "$name --> ${$element}{name1}\n";

Re: Math::GMP

2010-02-25 Thread Dave Tang
On Thu, 25 Feb 2010 18:30:33 +1000, Octavian Rasnita wrote: From: "Dave Tang" Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an error. Here's the transc

Re: Math::GMP

2010-02-25 Thread Shlomi Fish
On Thursday 25 Feb 2010 10:27:28 Dave Tang wrote: > On Thu, 25 Feb 2010 17:27:25 +1000, Shlomi Fish > > wrote: > > Hi Dave! > > Hi Shlomi! > Hi Dave. > Thank you for your reply. > > [snip] > > >> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. > >> I > >> have instal

Re: how do I replace all the spaces in a string with +

2010-02-25 Thread Jenda Krynicky
From: Erik Lewis > > print "Enter your address\n"; > > chomp (my $rawaddress = <>); > > my $geoaddress = $rawaddress =~ s/ /\+/; > #strip the spaces from the address > > my $googlekey = > "ABQIJKeZa28YtErALcrbEC0UlBREf5oWR6F07BQvSEe3pww8R4s0VhTfTt-19vTI9qA-_V1pUf4-_TcfpQ"; > #get your goo

Re: Math::GMP

2010-02-25 Thread Octavian Rasnita
From: "Dave Tang" Dear list, I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an error. Here's the transcript. May someone shed some light? I don't know your OS or versi

Re: Math::GMP

2010-02-25 Thread Dave Tang
On Thu, 25 Feb 2010 17:27:25 +1000, Shlomi Fish wrote: Hi Dave! Hi Shlomi! Thank you for your reply. [snip] I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I have installed a GMP library (required for Math::GMP) but when I try to install Math::GMP I get an error