I am facing a really unusual problem that has cropped up on me twice now. I've downloaded a couple of commercial perl scripts which were each zipped up into a Win32 .zip package. I unzip the files on a win machine then scp them over to a linux box. When I run the script on the linux box with a cli ./scriptname.pl, I receive:
bash: ./scriptname.pl: No such file or directory
However, when I open the file and add a "-w" flag to the #!/usr/bin/perl line, the script is found and ran.
Can someone explain why I am seeing this type of response?