[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Errors



At 02.42 11/21/97, Peter Apockotos wrote:
>Now that I stripped the CR's and LF's I ran a systax check and got the
>following:
>
># Macintosh_HD:WebSTAR 2.1: ~imageattic.com:cgi-bin:shop:shopcart.cgi
>syntax OK
># Can't locate perl5db.pl in @INC.
># BEGIN failed-compilation aborted.
>
>I have no idea what this means please help.

It means that you are probably trying to run the debugger, which requires
perl5db.pl, and that file is not in the default library paths (which are
stored in @INC).  This should be your default library path in the
preferences, something like HD:MacPerl Ä:lib:.

All these error messages are in the back of the Camel and in the perldiag
manpage (Troubleshooting -> Diagnostic messages under Help).


        Can't locate %s in @INC

                (F) You said to do (or require, or use) a file that
couldn't be found in any of the libraries mentioned in @INC.  Perhaps you
need to set the PERL5LIB or PERL5OPT environment variable to say where the
extra library is, or maybe the script needs to add the library name to
@INC.  Or maybe you just misspelled the name of the file.  See require in
the perlfunc manpage.



        Illegal character %s (carriage return)

                (F) A carriage return character was found in the input.
This is an error, and not a warning, because carriage return characters can
break multi-line strings, including here documents (e.g., print <<EOF;).

                Under Unix, this error is usually caused by executing Perl
code -- either the main program, a module, or an eval'd string -- that was
transferred over a network connection from a non-Unix system without
properly converting the text file format.

                Under systems that use something other than '\n' to delimit
lines of text, this error can also be caused by reading Perl code from a
file handle that is in binary mode (as set by the binmode operator).

                In either case, the Perl code in question will probably
need to be converted with something like s/\x0D\x0A?/\n/g before it can be
executed.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch