libwww-perl library

2009-04-21 Thread hOURS
host, but I don't really understand enough about libraries and all to even ask an intelligent question. Thanks much! Fred Kittelmann hOURS 215-551-1490 www.hoursystem.net

libwww-perl library ok, but 'get' still funny

2009-04-25 Thread hOURS
get an error message saying that url wasn't found on the server.  Can anyone help?  Thank you. By the way, in case you're wondering, that bit in the script with $propertime is because that site uses the time to calculate longitude.  I tried this by just putting in an appropriate valu

database troubles

2006-08-10 Thread hOURS
\n"} $A[0][1] = "red"; print $A[5][0]; print scalar(%A); Fred Kittelmann hOURS 215-551-1490 www.hoursystem.net - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

compiling PERL programs

2006-08-13 Thread hOURS
lable open source? Thanks, Fred Kittelmann Fred Kittelmann hOURS 215-551-1490 www.hoursystem.net - How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.

Perl and CGI

2006-08-24 Thread hOURS
ut what might be going on? (I can provide more details if needed.) Thanks much, Fred Kittelmann hOURS 215-551-1490 www.hoursystem.net - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail.

Re: compiling PERL programs

2006-09-15 Thread hOURS
came when I cut and pasted it.) Despite a couple zeroes near the end there, that doesn't look very binary to me. What's that all about? Any help would be appreciated. Why is this illegal? Did I get byte code? If so where is it? Fred Kittelmann hOURS wro

STDOUT

2006-09-19 Thread hOURS
Hi all, I've written a PERL program that runs other PERL programs (through 'require' statements and what not). It worked fine for a couple tasks I had in mind, but there's an obstacle ahead in the next thing I want to use it for. The programs it will execute may (or may not) have

Re: STDOUT

2006-09-19 Thread hOURS
ame`; my $syntax_ok = 0; foreach my $line ( @output ) { if ( $line =~ /$progname syntax OK/ ) { $syntax_ok = 1; last; } } Travis Thornhill wrote: Would something like this (with backticks) work? It's probably not as robust as using 'do BLOCK' but it might wo

2 dimensional list syntax

2006-09-25 Thread hOURS
Hi all, I'm trying to make a list of lists. The main list will have 926 sublists. Each sublist will have 7 items. I organized the data into a very nice text file all formatted the way (I thought?) I needed it to be. The text file looks like so: a, b, c, d, e, f, g h

Re: Checking for infinite loops

2006-11-30 Thread hOURS
Jen Spinney <[EMAIL PROTECTED]> wrote: On 11/20/06, hOURS wrote: > Recently I posed a question on here regarding a program I have that runs > other programs (through require statements and what not). My problem was > that the programs getting run might have syntax errors a

Re: Checking for infinite loops

2006-12-02 Thread hOURS
se I don't see a need to work with this example. I'm just looking for someone to tell me how alarm works. A few sentences in English will be fine. No code really need be written. Fred "D. Bolliger" <[EMAIL PROTECTED]> wrote: hOURS am Donnerstag, 30. Nove

Re: Checking for infinite loops

2006-12-06 Thread hOURS
Thanks for trying, but this right here is the heart of the matter. I’d be using alarm to time a certain thing. It seems to me, any explanation of how to do that, be it plain English or sample code has to incorporate that thing. My program in a nutshell goes: Blah bla

Re: Checking for infinite loops

2007-01-08 Thread hOURS
m $timeout; require longRunningModule; alarm 0; } if ($@) { if ($@ =~ /timed out/) { # timeout } else { # some other error } } Fred Kittelmann hOURS 215-551-1490 www.hoursystem.net __ Do You Yahoo!? Tired of spam?

Re: Checking for infinite loops

2007-01-09 Thread hOURS
Thanks. I did change the longRunningModule part. The syntax error was in the line: if ($@) { apparently at the end of the line, which I believe usually means opening brackets without closing brackets or vice versa. Fred Jay Savage <[EMAIL PROTECTED]> wrote: On 1/8/07, hOURS

Re: Checking for infinite loops

2007-01-11 Thread hOURS
Dave Gray <[EMAIL PROTECTED]> wrote: On 1/8/07, hOURS wrote: > Hi everyone, > Jay offered me the following code to help with something. I don't undertand > it, but tried to use it anyway to see if it would work. The computer told me > there was a syntax error in th

Re: Checking for infinite loops

2007-01-11 Thread hOURS
Jay Savage <[EMAIL PROTECTED]> wrote: On 1/11/07, hOURS wrote: [snip] > Some modifications I made: I changed the names of the programs being tested > to fit what I had. I reduced the alarm time from one hour down to a few > seconds. I included statements to print out error

Re: Checking for infinite loops

2007-01-11 Thread hOURS
Jay Savage <[EMAIL PROTECTED]> wrote: On 1/11/07, hOURS wrote: > > > Jay Savage wrote: On 1/11/07, hOURS wrote: > [snip] > Thanks Jay. I can't believe I didn't think of that myself. I put in the > 1;'s and the "or die". It's not that

Re: STDOUT

2007-03-19 Thread hOURS
Hi, I wrote to the list with this issue before and got some suggestions, but nothing worked. I ended up shelving it, but now would like to try again. I have a thousand scripts I'd like to check for syntax errors. (Long story that.) All I need is a list of which ones have er

Re: STDOUT

2007-03-19 Thread hOURS
Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: hOURS > Hi, > I wrote to the list with this issue before and got some suggestions, but > nothing worked. I ended up shelving it, but now would like to try again. > I have a thousand scripts I'd like to check fo

RE: STDOUT

2007-03-21 Thread hOURS
"Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> wrote: > -Original Message- > From: hOURS [mailto:[EMAIL PROTECTED] > Sent: Monday, March 19, 2007 13:17 > To: Perl Beginners > Subject: Re: STDOUT > > > > Jend

ASCII/binary endline character trouble

2012-03-25 Thread hOURS
Hello all, I write CGI scripts for my website in PERL.  When I used to upload them with my FTP program I made sure to do so in ASCII mode rather than binary.  My host made me switch to sFTP however.  I use FIlezilla, and can't for the life of me find out how to choose the mode on that.  Unfortun

Re: ASCII/binary endline character trouble

2012-03-26 Thread hOURS
com> Subject: Re: ASCII/binary endline character trouble To: "hOURS" Cc: "Perl Beginners" , perl-begin...@yahoogroups.com Date: Sunday, March 25, 2012, 9:35 PM Hi Fred, Please, check my comments and possible solution within your mail. On Sun, Mar 25, 2012 at 11:45 PM, hOUR

Re: ASCII/binary endline character trouble

2012-04-03 Thread hOURS
--- On Tue, 3/27/12, Rob Dixon wrote: From: Rob Dixon Subject: Re: ASCII/binary endline character trouble To: beginners@perl.org Cc: "hOURS" Date: Tuesday, March 27, 2012, 3:51 AM On 25/03/2012 23:45, hOURS wrote: > > I write CGI scripts for my website in PERL.  When I used to uploa

param

2007-07-01 Thread hOURS
Hi all, I read of a perl function called param, which is part of the CGI.pm perl library. The first simple program I wrote trying to use it didn't work though. At first I thought the ISP hosting my site didn't provide this library, but I was able to use other commands from it suc