in reply to Re: Re: Small Net::SMTP problem
in thread Small Net::SMTP problem

Like what I've been mentioning in the CB, run the following at your command prompt:

perl -d temp3.pl

Then step into the Net::SMTP->new call. Now go through each command in the new sub until the

Bad command or file name

is printed. Restart the script and when you get to the line that created the error, step into it (assuming it's a sub). Repeat the method of going to the next command until the error message is printed again. Then, repeat the process. Yeah, it's a drawn out method of finding the problem, but it beats stepping through each sub until you find it. Maybe there's a better way, but I am not the one who knows. :)

Update: This is mostly in reference to finding the problem command and does not actually remove the error message. I'd be appreciative to know if there is a better way to actually get to the command that causes the error without going through the hassle I've come up with as a basic solution.

ALL HAIL BRAK!!!