Without seeing your code, this is just a guess (why do people think we can debug their programs without seeing them?) but do you have the right kind of quote characters in your program?
You program should look like this:
#!/usr/bin/perl
use strict;
use warnings;
use 5.010;
say 'Hello World';
Or (with older versions of Perl) like this:
#!/usr/bin/perl
use strict;
use warnings;
print "Hello World\n";
My first version uses single quote characters around the string and my second version uses double quote characters. If you're getting an error saying "no such file" then it seems likely that you're using backticks - which are used to execute an external program. Does your print
line look like this:
print `Hello World\n`; # Warning! Wrong kind of quotes!
Update: No, this isn't the problem. If this was the case, you wouldn't be able to run the program with perl hello.pl
. This is very likely to be some confusion over the shebang line as mkHun says. But, once again, we can't really help you without seeing your code.