Reputation: 2277
I started using Padre and while working on a particular program which works just fine when run from the command line, Padre shows a Compilation failed in require
error message suggesting that there is a problem in BEGIN and I do not have a BEGIN block in my module.
So if someone could shed some light on what are the possible scenarios that this could happen. The module that is causing the error is over 500 lines of code, so don't think it is wise to paste all that.
Sometimes I wonder why I chose an IDE to cause me more (perhaps unnecessary) grief :-)
Thanks a lot.
Upvotes: 0
Views: 4752
Reputation: 385764
use Foo;
is short for
BEGIN {
require Foo;
import Foo;
}
Anyway that error message isn't noteworthy. It means that "I usually try to find all there errors, but I can't this time. Fix the earlier errors first." So what error did you actually get?
Upvotes: 2