I've got a small perl script which has been giving me an error, so I made a copy of it and began removing large chunks of it. Believe it or not, I am now left with a "Hello, World!" script that's giving me errors?
#!/usr/bin/perl
print "Hello, world!\n";
and the error I get is
$ ./test.pl
bash: ./test.pl: No such file or directory
Want to know what's even funnier? If I run this script with "-w" then it runs fine.
I've typed & retyped the #!/usr/bin/perl several times to make sure there werent' any funky characters in there.
What's going on? This must be something with my environment, and not the script?