> The CGI module is not supposed to export any functions
> without their being explicitly requested.
> Maybe you have a version that someone else hacked? No matter.
I honestly wouldn't know .. all of the functionality seems to be there.
> > > Also, since you are already using CGI.pm, why not
--- Curtis Poe <[EMAIL PROTECTED]> blathered:
> If it's printing out your tags in lower case, you definitely have an issue with
>CGI.pm.
[snip]
Ugh. That should have read "If it's *not* printing out your tags in lower case...".
Cheers,
Curtis Poe
=
Senior Programmer
Onsite! Technology (ht
--- "Tillema, Glenn" <[EMAIL PROTECTED]> wrote:
> > As written, this script won't work. If you call the
> > 'header()' function directly, you need to
> > import this function from CGI. One way to do it is:
> >
> > use CGI qw/:standard/;
>
> It works in the script I copy and pasted from ... :)
> As written, this script won't work. If you call the
> 'header()' function directly, you need to
> import this function from CGI. One way to do it is:
>
> use CGI qw/:standard/;
It works in the script I copy and pasted from ... :)
> Also, since you are already using CGI.pm, why not take
>
WebMaster AIM-US <[EMAIL PROTECTED]> wrote:
> Another option is to put the JavaScript in the text file, and have Perl
> read from that file, and print it directly. This means you can re-use the
> JavaScript code in other similar script without needing to edit each script
> whe
--- "Tillema, Glenn" <[EMAIL PROTECTED]> wrote:
> Here is how I do it;
>
> #!/usr/local/bin/perl -w
> use CGI;
>
> print header();
> print "\n",
> " test script\n";
> print <
>alert('test');
>
> DONE
> print "\n";
As written, this script won't work. If you call the 'header()' fun
> open(JAVASCRIPT, "javascript.js");
> while(){print $_}
> close(JAVASCRIPT);
that's wasteful, HTML already has the
tag attribute.
--
justin simonihttp://skazat.com
__
Steven Wright:
Here is how I do it;
#!/usr/local/bin/perl -w
use CGI;
print header();
print "\n",
" test script\n";
print <
alert('test');
DONE
print "\n";
cheers,
Glenn
Glenn Tillema [EMAIL PROTECTED]
ADC Telecommunications, Inc.
PO Box 1101, MS 508
Minneapolis, MN 55440-1101
Just call it from perl
print "\n\n";
print "web site\n";
print "\n";
print "\n";
print "\n";
print "\n";
print "\n";
print "\n";
print "\n";
print "\n";
exit;
- Original Message -
From: [EMAIL PROTECTED]
To: CGI Beginners
Sent: Tuesday, June 12, 2001 4:41 PM
Subject: ja
Another option is to put the JavaScript in the text file, and have Perl
read from that file, and print it directly. This means you can re-use the
JavaScript code in other similar script without needing to edit each script
when the JavaScript need changing:
open(J
try something like this:
#!/usr/bin/perl
use CGI qw(:standard);
$javascript = <$javascript);
print p(a({-href=>'javascript:annoy()'}, "Click me to be annoyed"));
--
justin simonihttp://skazat.com
__
11 matches
Mail list logo