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

Re: [MacPerl] How To Book



On Tue, 22 Jun 1999 07:57:52 -0500, ken towry wrote:

>This line tells us nothing, because it is repeated several times.
>
> die "This is an invalid html file.\n";
>
>To overcome this I changed my lines to:
>
> die "This is an invalid html file one.\n";
> die "This is an invalid html file two.\n";
>
>One or two tells me where in the script it is failing.

You could also strip out the newlines ("\n") from the "error message".
It prevents the error reporting from appending the line number of the
die() statement that was called. It's a trick that is few people know.

	die "This is an invalid html file.";

	Bart.

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org