in reply to Re: Re: Can someone explain this error?
in thread Can someone explain this error?

Which is line 16?

  • Comment on Re: Re: Re: Can someone explain this error?

Replies are listed 'Best First'.
Re: Re: Re: Re: Can someone explain this error?
by wstarrs (Acolyte) on May 22, 2001 at 01:22 UTC
    Actually the message said (eval 15) line 16, and I had no idea how to interpret that, but the code I gave you was part of the new fuctionality that I put in, so the problem is either there or in one of the two routines called from there...
      That means the 15'th eval, on line 16, had the error.

      The easiest way to make this error more understandable is to go to the last section of perlsyn and convince Perl to give you a more informative label for the eval than just "eval 15".

      UPDATE
      I should mention that in 5.005_03 there is a bug. The preprocessor directive will not work if it is the first line of an eval. So add a return before the first line. (You will be setting the line number anyways so it doesn't really matter.)