Actualy I can spend all day editing it back and forth adding and removing the "-w" or even "-d" and if there is nothing after the #!/usr/bin/perl it fails.. But I will double check it when I get home and make sure that I have run dos2unix on it.
The real confusion is it works fine on Fedora Core 5 even with the "^M" in it.
Comment on Re^2: Problem with running Perl script on Mac OSX