This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add an example how to fix '%s: command not found'
[perl5.git] / pod / perldiag.pod
index 9263de2..92e71c0 100644 (file)
@@ -1467,8 +1467,11 @@ and both these succeed:
 
 =item %s: Command not found
 
-(A) You've accidentally run your script through B<csh> instead of Perl.
-Check the #! line, or manually feed your script into Perl yourself.
+(A) You've accidentally run your script through B<csh> or another
+shell instead of Perl. Check the #! line, or manually feed your script into
+Perl yourself. The #! line at the top of your file could look like
+
+  #!/usr/bin/perl -w
 
 =item Compilation failed in require