View Single Post
Old Sep 20th, 2007, 1:44 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Running a Mac-Written Script on a Linux Machine

Hey guys, it's been a while. I'm only here for a quick question, because I need this answered asap for the work I'm doing (at Nortel btw).

I've written the simplest piece of code ever, on a Mac in MacPerl.

#!/usr/bin/perl
print "Hello World!";

I can run this fine on the Mac's test console, receiving the appropriate output.

However, when I upload it to the Linux server via Fetch, I get a 500 Internal Server Error. Despite the fact that there are hundreds of other working Perl scripts in that exact same directory (with the same file permissions).

My first thought is that the ASCII is being encoded differently, such as with newlines and quotations. Can anyone confirm this, and suggest a fix?

P.S. Congrats PFO. You are the first website (besides Google) that displays correctly on the old Internet Explorer so far! You're a life saver!
Sane is online now   Reply With Quote