RE: cgi script that takes in data then runs script on different host

2002-05-28 Thread David Gray
First of all, don't cross-post please. One list is quite sufficient, and many people are subscribed to more than one list, so duplicate messages are quite often completely ignored. > I've got a cgi form that takes in data. Then, I want the > data to be passed to a script that's waiting on a DIF

calculate dates

2002-05-28 Thread Sven Bentlage
Hi ! I'm trying to get all the date values for the week (7days) ahead of a specified date. To get the current date I use : my ($d, $m, $y) = (localtime)[3,4,5]; my $date = sprintf("%02d-%02d-%02d", $

Counter and scoping(?) issue

2002-05-28 Thread Camilo Gonzalez
Gurus, I've been having this problem in various permutations throughout my Perl life. For this particular function, I set $confirm_counter to 1. Then I use a foreach loop to send email to multiple recipients. Within the foreach loop, I increment $confirm_counter by using $confirm_counter++. I th

[OT] Web Hosting

2002-05-28 Thread Glenn Cannon
Hi All, I know this is kind of topic, but I figured with all the CGI experience I have seen on this list, someone must have already been through this situation. I am a website developer who builds sites for local business/groups/individuals. Many of the people I build for are then looking for a

Re: calculate dates

2002-05-28 Thread fliptop
Sven Bentlage wrote: > I'm trying to get all the date values for the week (7days) ahead of a > specified date. try date::calc http://search.cpan.org/search?dist=Date-Calc -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Getting content of a configuration file

2002-05-28 Thread John Brooking
Octavian, I'd be surprised if it's not possible to generate variables of specific names on the fly in Perl, but I personally don't know how, and the syntax might be kind of weird. At the expense of a slightly more complicated data structure, I *can* give you some quick code that is hopefully s

Re: Counter and scoping(?) issue

2002-05-28 Thread Greg Matheson
On Tue, 28 May 2002, Camilo Gonzalez wrote: > Gurus, > I've been having this problem in various permutations throughout my Perl > life. For this particular function, I set $confirm_counter to 1. Then I use > a foreach loop to send email to multiple recipients. Within the foreach > loop, I increm

Using strict and configuration files

2002-05-28 Thread Octavian Rasnita
Hi all, I want to use: use strict; And I want to use a configuration file in a Perl script. The configuration file uses: %page1=( ); %page2=( ); This way I get errors if I run the script because the variables are not defined with "my". I've tried putting in the configuration file:

What type of end of line is this?

2002-05-28 Thread Octavian Rasnita
Hi all, I've made a little experiment. I made a simple form with a textarea field. I've typed a single digit in that field and I have submitted the form. It was a single digit, with no enter after it. I've saved the field to a file. The file has 3 bytes instead of 1 (for a LF) or 2 for CRLF. I

Verifying the CONTENT_LENGTH

2002-05-28 Thread Octavian Rasnita
Hi all, I've made a script for uploading files. I want to verify the CONTENT_LENGTH. I know how to do it and it works. The problem is that for verifying the CONTENT_LENGTH, the page visitor should wait a long time if the file is bigger, like the time for uploading the file. The visitor may not

Re: cgi script that takes in data then runs script on different host

2002-05-28 Thread Todd Wade
"Simon K. Chan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > cgi script on host 1pass $name to host 2 script on host 2 > # get $name ---> print "hi there $name!\n"; Somewhere at the top of scriptOnHost1.cgi