Hello!
I have a program that uses the CGI module (v 2.36). Here is a code
snippet:
my $q = new CGI;
#
# some more code...
#
print $q->start_html(-title=>$callout_name,
-onLoad=>$init,
-script=>{-language=>'javascript',
-src=>'/iw/js/handle_selections.js'});
The code does exactly what I want. However, I get the following message
(when the perl -w option is enabled):
Use of uninitialized value at (eval 11) line 17.
If I pass the -script parameter a string, instead of the language and
source parameters, I don't get the message. However, I need to use the
same JS in multiple perl programs, so it makes sense to use a file.
Is this message something I should just live with (or turn off the -w
option)? Or is this a minor bug in the CGI module? Or, being a newbie to
Perl, am I doing something else wrong?
Thanks in advance for any advice,
Kevin
Kevin Hundley
Senior Developer
Centers for IBM e-Business Innovation :: Atlanta
Phone: 770.835.7599 T/L: 445.7599
Fax: 770.835.7185
email: [EMAIL PROTECTED]
"One cannot guess the real difficulties of a problem before having solved
it." - Carl Ludwig Siegel
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]