diff options
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index ad4a532aaf..83a30c3e1a 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -13,6 +13,7 @@ desperation): (F) A fatal error (trappable). (P) An internal error you should never see (trappable). (X) A very fatal error (non-trappable). + (A) An alien error message (not generated by Perl). Optional warnings are enabled by using the B<-w> switch. Warnings may be captured by setting C<$^Q> to a reference to a routine that will be @@ -98,6 +99,30 @@ before it could possibly have been used. (F) The final summary message when a C<perl -c> succeeds. +=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. + +=item %s: Expression syntax. + +(A) You've accidentally run your script through B<csh> instead +of Perl. Check the <#!> line, or manually feed your script +into Perl yourself. + +=item %s: Undefined variable. + +(A) You've accidentally run your script through B<csh> instead +of Perl. Check the <#!> line, or manually feed your script +into Perl yourself. + +=item %s: not found + +(A) You've accidentally run your script through the Bourne shell +instead of Perl. Check the <#!> line, or manually feed your script +into Perl yourself. + =item B<-P> not allowed for setuid/setgid script (F) The script would have to be opened by the C preprocessor by name, @@ -245,6 +270,12 @@ wasn't a symbol table entry. (P) An internal request asked to add a hash entry to something that wasn't a symbol table entry. +=item Badly places ()'s + +(A) You've accidentally run your script through B<csh> instead +of Perl. Check the <#!> line, or manually feed your script +into Perl yourself. + =item BEGIN failed--compilation aborted (F) An untrapped exception was raised while executing a BEGIN subroutine. @@ -1556,7 +1587,7 @@ Perl assumes that memory is now corrupted. See L<perlfunc/ioctl>. =item Precedence problem: open %s should be open(%s) (S) The old irregular construct - + open FOO || die; is now misinterpreted as @@ -1847,6 +1878,12 @@ the only way to figure out what's triggering the error is to call C<perl -c> repeatedly, chopping away half the program each time to see if the error went away. Sort of the cybernetic version of S<20 questions>. +=item syntax error at line %d: `%s' unexpected + +(A) You've accidentally run your script through the Bourne shell +instead of Perl. Check the <#!> line, or manually feed your script +into Perl yourself. + =item System V IPC is not implemented on this machine (F) You tried to do something with a function beginning with "sem", "shm" @@ -1911,6 +1948,14 @@ you're not running on Unix. (F) There has to be at least one argument to syscall() to specify the system call to call, silly dilly. +=item Too many ('s + +=item Too many )'s + +(A) You've accidentally run your script through B<csh> instead +of Perl. Check the <#!> line, or manually feed your script +into Perl yourself. + =item Too many args to syscall (F) Perl only supports a maximum of 14 args to syscall(). @@ -2161,6 +2206,12 @@ something else of the same name (usually a subroutine) is exported by that module. It usually means you put the wrong funny character on the front of your variable. +=item Variable syntax. + +(A) You've accidentally run your script through B<csh> instead +of Perl. Check the <#!> line, or manually feed your script +into Perl yourself. + =item Warning: unable to close filehandle %s properly. (S) The implicit close() done by an open() got an error indication on the |