On 10/25/19 12:22 PM, Uri Guttman wrote:
my understanding (to be corrected by greg) is that an error in evaled perl code reports the line number in that code. he wants the line number of the eval call itself. he can use __LINE__ to get that when he checks the eval for any errors in the slurped in code.

another idea:

use carp to report the error (or one of the carp subs). check the eval for an error and carp $@. it should report the current line number of the eval.

uri

_______________________________________________
Boston-pm mailing list
Boston-pm@pm.org
https://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to