Re: if "or die "..." it surely dies!

2002-05-26 Thread Roberto Ruiz
Hello, On Sun, May 26, 2002 at 05:42:24PM +0300, Octavian Rasnita wrote: > > I have seen more advices to check if a file can be opened, but if I put > something like: > > open (FILE, "$file") or die "Can't open the file $file - $!"; > > . after I run the script, if it can't find that file

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

2002-05-26 Thread Simon K. Chan
Hi All, 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 DIFFERENT host. So, say I have this pseudo-code: cgi script on host 1pass $name to host 2 script on host 2 # get $name ---> prin

Why it doesn't start to download?

2002-05-26 Thread Octavian Rasnita
Hi all, I've tried the following code: $path = http://site.com/prg/teledisk223.zip; print "Location:$path\n\n"; This prints the zip file on my screen. Or better said, it doesn't print anything but if I refresh the screen, it prints the zip file. Why doesn't it download the file? And 2 mo

RE: Checking who called a cgi-script

2002-05-26 Thread Scot Robnett
Probably would just be easier to use 'eq' instead of '=', but qw works. I was half asleep when I did that...I'd be amazed if everything was right the first time. :) Thanks SR -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 26, 2002 11:03 AM To:

Re: Getting content of a configuration file

2002-05-26 Thread Sven
Hi Teddy, you may try the following: Write into your conf-file: %assembly = ( title=> 'Assembly language page', description => 'Download free manuals and tutorials for assembly language', . ); %basic = ( title=> 'Basic and Visual Basic page', description

Re: Checking who called a cgi-script

2002-05-26 Thread Sebastian Nerz
Hy, drieux schrieb: > > On Saturday, May 25, 2002, at 08:18 , Scot Robnett wrote: > <..> > > my @good_domains = qw/domain1.com theIpAddrFor_domain1.com > www.domain1.com theIpAddrFor_www.domain1.com > domain2.com

Re: Checking who called a cgi-script

2002-05-26 Thread drieux
On Saturday, May 25, 2002, at 08:18 , Scot Robnett wrote: > # Compare the referer against your "good list" > for $domain(@good_domains) { > if ($domain = $referer) { # If the referer matches a > $good_one = "success"; # domain in your list, set > last; # $good_one