Read the error carefully, it may have been giving you a line number in the
Time::Local module in your script, and it will tell you that.  Often you
will get the line in the module that had the error as well as the line
number in your script that called the subroutine in the module.

As for tracking down errors you might also find "use diagnostics" helpful.

And as far as getting the line numbers printed on your script you might want
to use an editor that shows the line numbers (emacs, InterDev, Komodo,
HomeSite, etc).

Does that answer your question?

Rob



-----Original Message-----
From: Hewlett Pickens [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:49 PM
To: [EMAIL PROTECTED]
Subject: Line Numbers and Posting Archives


Question 1:  Is there an archive of past postings available?  Would keep me
from asking too many "really basic" question like the next one.

Question 2:  Is there a way to get line numbers printed on a script?  For
short scripts, compiler error messages for "Line n" aren't too hard too
find, but as script becomes larger, becomes onerous.  And, just had an
instance of an error with a line number about 50 lines beyond my 46 line
script (Am guessing that's because of some of the "use xxx" entries, but
prior to my including "use Time::Local;", didn't have that kind of
mis-match.

Thanks

Hewlett

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to