B,
Please post the entire code base of envir.pl. Feel free to obfuscate
any data that it requires. I cannot get the code you posted to fail.
There is something amiss, and we need to see the code to help.
Kristofer.
--- "B. Fongo" <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I'm working on my first Perl project. Most of my cgi programs work
> ok,
> but a look at the apache error log reveals this warning which is
> clear
> to me:
>
> Variable "$xy" will not stay shared at /data/www/cgi-perl/envir.pl
> line
> 19. [Wed Jul 16 11:44:57 2003] [error] Undefined subroutine
> &Apache::ROOT::cgi_2dperl::environ_2epl::start_html called at
> /data/www/cgi-
> perl/envir.pl line 20.
>
> For instance: This code will trigger such warning.
>
> #!/usr/bin/perl -w
> use strict;
> use CGI;
> my $xy = new CGI;
> print $xy->header();
> print $xy->start_html();
> print $xy->p(" Perl-CGI");
> print $xy->end_html;
>
> #########################
>
> I tried several alternatives, like invoking print() only once at
> header.
> But I can't feature out what that warning actually means. My apache
> is
> configure with mod_perl.
>
> Besides that, my project will consist of 1 main Perl script and
> several
> modules in a subdirectory which will be performing various functions.
> Now; what I intend to do is always send the main script a parameter
> through the URL, which will then indicate which of the modules should
> be
> called. Each of my modules will contains subroutines for various
> functions:
> My question is: How do I send a parameter to my script through a link
> on
> my web page? I tried something like this, but did not work.
>
> <a href="cgi-perl/mainprogram.pl?action=cup_of_coffee">A cup of
> coffee
> </a>
>
> What I'm trying to do here is to send the string "cup_of_coffee" to
> the main program.
>
> The main program will have something like this to store the parameter
> from the url:
> @forwarded_by_url = ??? # Am not sure here.
>
>
> Can someone tell me how to implement it? That will be great!
>
> Thanks
>
> Babs
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
=====
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d s+:++ a C++ UL++ US+ P+++ L++
W+++ w PS PE t++ b+ G e r+++ z++++
------END GEEK CODE BLOCK------
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]