Re: Strange error: PerlRun

2005-09-28 Thread Jeff Peng
too few info u have given. It seems that u have problem at the interface of cgi script to web server. 2005/9/28, Graeme McLaren <[EMAIL PROTECTED]>: > Afternoon all, I have a strange error: > > [Tue Sep 27 14:43:41 2005] [error] PerlRun: `failed at stage 1: Input/output > error > at /usr/local/lib

RE: a little help...

2005-09-28 Thread Wagner, David --- Senior Programmer Analyst --- WGO
FamiLink Admin wrote: > I am only concerned about the IP. The rest is just to verify the > data for now. What code would I use to key the $IP in to hash for > counting?. Most of the IP's are not static but are from broadband > and don't change too often. An example log is: > > - >

Re: a little help...

2005-09-28 Thread FamiLink Admin
I am only concerned about the IP. The rest is just to verify the data for now. What code would I use to key the $IP in to hash for counting?. Most of the IP's are not static but are from broadband and don't change too often. An example log is: - [2005-09-28 10:05:03 -7:00] 127.

RE: a little help...

2005-09-28 Thread Wagner, David --- Senior Programmer Analyst --- WGO
FamiLink Admin wrote: > Jeff , > Thanks for all your help! This is what I have now (below and this > time the whole thing): I think I have included all that you talked > about plus others: > > The sub scanlog does write the information to the files but it does > not return anything back to the

Re: a little help...

2005-09-28 Thread FamiLink Admin
Jeff , Thanks for all your help! This is what I have now (below and this time the whole thing): I think I have included all that you talked about plus others: The sub scanlog does write the information to the files but it does not return anything back to the main program and I also get the

Re: question about # of files in a directory

2005-09-28 Thread Wiggins d'Anconia
ZHAO, BING wrote: > Hi, > first, I want to thank all who viewed my first question days > before, especially to those who took time to answer it. It was > trenmendous encouragement for a beginner perlee like me. Thanks again. > My question: > Is there a way to ca

question about # of files in a directory

2005-09-28 Thread ZHAO, BING
Hi, first, I want to thank all who viewed my first question days before, especially to those who took time to answer it. It was trenmendous encouragement for a beginner perlee like me. Thanks again. My question: Is there a way to call or maybe get the # of f

Re: a little help...

2005-09-28 Thread Jeff 'japhy' Pinyan
On Sep 28, FamiLink Admin said: I am trying to read a log file and get a list of how many times an IP address get blocked each hour by category PO. An example line in the log with a block is: - [2005-09-28 10:05:03 -7:00] 127.0.0.1 71.32.59.249 216.163.137.3 - http://www.playbo

a little help...

2005-09-28 Thread FamiLink Admin
Hello all. Please let me know if this is a good place for my questions. I am trying to read a log file and get a list of how many times an IP address get blocked each hour by category PO. An example line in the log with a block is: - [2005-09-28 10:05:03 -7:00] 127.0.0.1 71.32.59.2

Re: Anonymous Reference Question

2005-09-28 Thread Jeff 'japhy' Pinyan
On Sep 28, Dave Adams said: #!/usr/bin/perl -w use strict; use Data::Dumper; my $grades = {"tom"=> 50, "sally"=> 60, "harry" => 70}; print Dumper($grades) ; And perl gives me this: $VAR1 = { 'harry' => 70, 'sally' => 60, 'tom' => 50 }; QUESTION: Does this mea

Anonymous Reference Question

2005-09-28 Thread Dave Adams
When I do this: #!/usr/bin/perl -w use strict; use Data::Dumper; my $grades = {"tom"=> 50, "sally"=> 60, "harry" => 70}; print Dumper($grades) ; And perl gives me this: $VAR1 = { 'harry' => 70, 'sally' => 60, 'tom' => 50 }; QUESTION: Does this mean that $

Re: general retry function

2005-09-28 Thread Ing. Branislav Gerzo
Wiggins d'Anconia [Wd], on Tuesday, September 27, 2005 at 17:51 (-0600) contributed this to our collective wisdom: Wd> You haven't shown us what you have tried, or where it failed, only Wd> suggested something about eval and recursive subs, which neither of Wd> which should be pertinent here. Show

Re: WELCOME to beginners@perl.org

2005-09-28 Thread Dave Gray
On 9/28/05, Ryan Frantz <[EMAIL PROTECTED]> wrote: > Just for giggles, I'm gonna assume that you're using PPM (you gave > nothing else to go on)... > > I've only installed this particular module using ActiveState's 'ppm' > myself; it seems to have problems with the '::' in module names. If ppm > c

Re: WELCOME to beginners@perl.org

2005-09-28 Thread getmurali
On Wednesday 28 September 2005 21:40, Chris Devers wrote: download http://search.cpan.org/CPAN/authors/id/K/KW/KWITKNR/Spreadsheet-ParseExcel-0.2603.tar.gz unzip: tar zxf Spreadsheet-ParseExcel-0.2603.tar.gz cd Spreadsheet-ParseExcel-0.2603 perl Makefile.PL make make install you are done mu

Re: WELCOME to beginners@perl.org

2005-09-28 Thread Chris Devers
On Wed, 28 Sep 2005, Rob Coops wrote: > Even though the last email was funny I guess that is not what the person > asking the questions was after. > On the other hand a little more detail than the statement: "It does not > work" would be very helpful. Things people usualy want to know when troubl

Re: eval without warnings

2005-09-28 Thread Bryan R Harris
> On Sep 27, Bryan R Harris said: > >> "2*(3+2)" ==> 10 >> "2*dog" ==> "2*dog" >> "mysquarefunction(2)" ==> 4 >> "3*mysquarefunction(2)" ==> 12 >> "some guy" ==> "some guy" > > Here's a solution that works for the cases you've provided: > >sub try_eval { > local $@; > my $warning

Re: WELCOME to beginners@perl.org

2005-09-28 Thread Rob Coops
Even though the last email was funny I guess that is not what the person asking the questions was after. On the other hand a little more detail than the statement: "It does not work" would be very helpful. Things people usualy want to know when trouble shooting is: - OS - Which version did

RE: WELCOME to beginners@perl.org

2005-09-28 Thread Ryan Frantz
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 28, 2005 12:08 PM > To: beginners@perl.org > Subject: Re: WELCOME to beginners@perl.org > > Any idea how to install Spreadsheet::ParseExcel? Just for giggles, I'm gonna assume that you'

RE: WELCOME to beginners@perl.org

2005-09-28 Thread Gomez, Juan
Just something for to start looking for info on the module http://search.cpan.org/~kwitknr/Spreadsheet-ParseExcel-0.2602/ParseExcel.pm Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTE

Re: WELCOME to beginners@perl.org

2005-09-28 Thread Chris Devers
On Wed, 28 Sep 2005 [EMAIL PROTECTED] wrote: > Any idea how to install Spreadsheet::ParseExcel? Yes. > I've downed loaded the required modules, but > it still does not seem to work. Bummer. > Are there clear instructions anywhere? Yes. -- Chris Devers 9™wkö¦QC½lD“ -- To unsubscribe,

Re: WELCOME to beginners@perl.org

2005-09-28 Thread dmitrik
Any idea how to install Spreadsheet::ParseExcel? I've downed loaded the required modules, but it still does not seem to work. Are there clear instructions anywhere? tia, dk -Original Message- From: [EMAIL PROTECTED] Sent: Sep 28, 2005 11:08 AM To: [EMAIL PROTECTED] Subject: WELCOME

RE: general retry function

2005-09-28 Thread Chris Devers
On Wed, 28 Sep 2005, Bob Showalter wrote: > Chris Devers wrote: > > while ( $tries < 10 ) { > > my $result = do_something_risky(); > > break if ( $result != 0 ); > > "last", not "break" Whoops! Thank you, yes, use 'last' there. -- Chris Devers Áû}=œX…àÀžÀ -- To unsubscribe, e-m

RE: general retry function

2005-09-28 Thread Bob Showalter
Chris Devers wrote: > while ( $tries < 10 ) { > my $result = do_something_risky(); > break if ( $result != 0 ); "last", not "break" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Strange error: PerlRun

2005-09-28 Thread Graeme McLaren
Afternoon all, I have a strange error: [Tue Sep 27 14:43:41 2005] [error] PerlRun: `failed at stage 1: Input/output error at /usr/local/lib/perl5/5.8.0/CGI/Carp.pm line 301. I have had a google around and I've not found anything. Does anyone know what this means or what problem this could po

Re: File Existance

2005-09-28 Thread Robin
(Bringing this back to the list) On Wednesday 28 September 2005 21:09, you wrote: > I don't get this to work. What am I doing wrong? Must the path be > included? My program is like this: > > my $program = "ls"; > > if (-e $program) { > #execute program > } yes, it must include the full path: fore

Re: File Existance

2005-09-28 Thread Robin
On Wednesday 28 September 2005 20:55, [EMAIL PROTECTED] wrote: > I have a lot of experience in programming, but WHAT command do I use > for checking if a file exists... Have searched google, but can't seem > to find any good answers... if (-e "/tmp/myfile") { print "File! :)\n"; } else {

Re: File Existance

2005-09-28 Thread ganesh
-e filename Regards, Ganesh [EMAIL PROTECTED] wrote: Hi there! I have a lot of experience in programming, but WHAT command do I use for checking if a file exists... Have searched google, but can't seem to find any good answers... /G http://www.varupiraten.se/ -- To unsubscribe, e-ma

File Existance

2005-09-28 Thread gustav
Hi there! I have a lot of experience in programming, but WHAT command do I use for checking if a file exists... Have searched google, but can't seem to find any good answers... /G http://www.varupiraten.se/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RE: how to make charts using GD

2005-09-28 Thread Dan Klose
On Wed, 2005-09-28 at 08:10 +0200, Thomas Bätzler wrote: > Hello, > > Aditi Gupta <[EMAIL PROTECTED]> asked: > > I have a perl code that generates a sequence of values which > > i want to plot on y-axis against 1,2,3... on x-axis. I've > > read that GD::Graph could be used for it. But I've n