What I'm trying to do is print the contents of helpdesk/support.cgi when
c2=hd
Here is that portion of the script and as of right now it is displaying a
blank page when I
try to run it:
my $c1 = param('c1');
my $content1 = "c1";
if ($c1 eq "h") {
$content1 = qq{ \n};
} elsif ($c1 eq "eh") {
$content1 = qq{ \n};
} elsif ($c1 eq "p") {
$content1 = qq{ \n};
} elsif ($c1 eq "c") {
$content1 = qq{ \n};
} elsif ($c1 eq "su") {
$content1 = qq{ \n};
} elsif ($c1 eq "hd") {
$content1 = qq{IMAP.cc Help Desk\n};
} else {print "error: content1 failed\n";}
my $c2 = param('c2');
my $content2 = "c2";
if ($c2 eq "h") {
$content2 = qq{ \n};
} elsif ($c2 eq "eh") {
$content2 = qq{ \n};
} elsif ($c2 eq "p") {
$content2 = qq{ \n};
} elsif ($c2 eq "c") {
$content2 = qq{ \n};
} elsif ($c2 eq "su") {
$content2 = qq{ \n};
} elsif ($c2 eq "hd") {
$content2 = include{"helpdesk/support.cgi"};
} else {print "error: content2 failed\n";}
----- Original Message -----
From: "Hanson, Robert" <[EMAIL PROTECTED]>
To: "'Kyle Babich'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 4:00 PM
Subject: RE: invalid
> It depends on what "include" is.
>
> If it is a subroutine...
>
> $content2 = include("helpdesk/support.cgi");
>
> If it is a hash...
>
> $content2 = $include{"helpdesk/support.cgi"};
>
> ....And what was the error?
>
> Rob
>
> -----Original Message-----
> From: Kyle Babich [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 27, 2002 3:49 PM
> To: [EMAIL PROTECTED]
> Subject: invalid
>
>
> Why is this invalid and how do I make this valid while using strict subs?
>
> } elsif ($c2 eq "hd") {
> $content2 = include{helpdesk/support.cgi};
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]