473,466 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Perl cgi not updating

I am having a very hard time trying to write a cgi script in perl.

Whenever I change the code, and call it from my form, I usually find
results from an older version of the scrip, though it happens
inconistently. Obviously something is being cached somewhere.

An example of this weirdness is when I write a line, and the script
stops working. Then I coment out the line, and the script works again.
OK, so I delete the line, but the script doesn't work again. I have one
print statement that I deleted half an hour ago, but I still get its output.

Or was it something I ate?

I am running Redhat 9, apache 2.0.48 and associated perl modules, and
testing from another machine running Mozilla on Windows XP.

Thanks,

Mark
Jul 19 '05 #1
3 2524
Mark Simon wrote:
I am having a very hard time trying to write a cgi script in perl.

Whenever I change the code, and call it from my form, I usually
find results from an older version of the scrip, though it happens
inconistently. Obviously something is being cached somewhere.


Are you possibly running the script under mod_perl?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Jul 19 '05 #2
I am. Is this not a Good Thing ... ?

Gunnar Hjalmarsson wrote:
Mark Simon wrote:
I am having a very hard time trying to write a cgi script in perl.

Whenever I change the code, and call it from my form, I usually
find results from an older version of the scrip, though it happens
inconistently. Obviously something is being cached somewhere.

Are you possibly running the script under mod_perl?

Jul 19 '05 #3
Mark Simon wrote:
Gunnar Hjalmarsson wrote:
Mark Simon wrote:
I am having a very hard time trying to write a cgi script in
perl.

Whenever I change the code, and call it from my form, I usually
find results from an older version of the scrip, though it
happens inconistently. Obviously something is being cached
somewhere.


Are you possibly running the script under mod_perl?


I am. Is this not a Good Thing ... ?


Well, as long as you don't understand what mod_perl does (and your
original post indicates that you don't), I suppose you'd better run
the script as a plain CGI script.

Of course, you can start learning about mod_perl:
http://perl.apache.org/

One way to ensure that code changes take effect when running programs
under mod_perl is to restart the Apache server.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Goblin | last post by:
Hello i have a little code for updating somethink in my SQL database. I get the error: bash: /root/remstats.pl: /usr/bin/perl: bad interpreter: Permission denied Can someone tell me what's wrong?...
0
by: | last post by:
I have this question for homework in an intro perl class, I was hoping for some quick help on this please...here is the question Using the Perl programming language, please prepare the following...
4
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
0
by: Patrick Hatcher | last post by:
Anyone using perl scripts to import data with Pg 7.4.X? Since updating to Pg 7.4.2 from 7.3.6 , I no longer can tell where my import error occurs because the error row information now resides in...
5
by: Karyn Williams | last post by:
I am new to Pyton. I am trying to modify and understand a script someone else wrote. I am trying to make sense of the following code snippet. I know line 7 would be best coded with regex. I first...
1
by: smartchap009 | last post by:
Adding,Updating and Deleting user using perl script in linux -------------------------------------------------------------------------------- hi, If i can get help in writing perl code for...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
24
by: Peter Michaux | last post by:
I have a Perl script that I want to run as a set-user-ID program. Many OSes don't allow scripts run as set-user-ID. To make this script portable, it seems I need to write a C wrapper program that...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.