[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Probably a waste of your time...



New on the mailing list and already wasting bandwidth...

I did this cgi on my mac (where it works great). I put it through testing
with a MacHttp server, Netscape 2.0 and MacPerl5.

The next step was bringing it up to our UNIX SGI box for testing. We
attempt to run it and we get an error. The thing says it's probably a
configuration error.
To make a long story short, I just wanted to make sure my script is sound.
Assuming everything on the server is configed correctly - it may not be,
and we're working on that, but assuming it is...
Is there anything in my script that wouldn't run on UNIX? In other words,
are there characters that should be different on UNIX than an the Mac?
Should there be additional info contained in the script that I don't know
about? I'm still not sure about Unix, since I can't actually click on an
application and run Perl. (Perl as a verb, what a trip). My references for
all this is the llama books and a book by Brenner and Aoki called Intro to
CGI/Perl. I am really new at Perl, so I wouldn't be surprised if I'm
missing something really simple.

Thanks in advance, here's the script:

#!/usr/bin/Perl


require "cgi-lib.pl";

%try = (
"index", "Location: http://www.some/url.html\n\n",
"hcity", "Location: http://www.some/other_url.html\n\n",
"sunbiz", "Location: http://www.some/other/other_url.html\n\n"
);

MAIN:
{

&ReadParse;

print "$try{$in{'selecturl'}}"

}