On June 5, 2005 at 22:55, East Coast Coder wrote: > While working on my callbacks, I noticed that, despite the require() > call in mhasiteinit.pl, if there is a compilation problem in my > callback file, mhonarc still runs, without a peep - leaving me > clueless until I ]$ perl callback_file.pl to see that I introduced a > compile error.
First, did you run "perl -c" on your file? Always a good practice. > I'm not a Perl junkie, so forgive me for my ignorance: is there a > simple way to say that the callback file should be, um, *require*d, > and that, if it doesn't compile, mhonarc should say so and quit? Currently, mhonarc ignores any errors in the requiring of mhasiteinit.pl. The reason is that mhasiteinit.pl support did not always exist in mhonarc. Therefore, the existence of it is not required (no pun intended). Therefore, to avoid bogus errors for most users, the return status of 'require' is ignored to avoid user confusion. For users that mess with mhasiteinit.pl, I figured they would at least check the syntax of the file first before trying to use it. --ewh --------------------------------------------------------------------- To sign-off this list, send email to [EMAIL PROTECTED] with the message text UNSUBSCRIBE MHONARC-DEV
