Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Compilation failed, Vendor::Amazon, Vendor::BarnesNobleby luisfagundes (Initiate) |
on Feb 23, 2004 at 02:13 UTC ( [id://331009]=perlquestion: print w/replies, xml ) | Need Help?? |
luisfagundes has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks! I'm right on a deadline and everything was working perfect. Then I made some comments, put use strict in all modules and one 'my' that was missing to compile with strict and when trying to compile, I got this: Unknown error Compilation failed in require at BookRetriever.pm line 8. BEGIN failed--compilation aborted at BookRetriever.pm line 8. Compilation failed in require at compare_prices.pl line 4. BEGIN failed--compilation aborted at compare_prices.pl line 4. These are the first lines of BookRetriever: error line is this use Vendor::Amazon, and error happens Vendor::BarnesNobles if I exchange them. In fact, I made one change right there. It was working, them I erased these two lines, put a BEGIN around our %CONFIG and inside the BEGIN I looped through @{$CONFIG{'vendors'}} and eval "use Vendor::$vendor;"; I kept writing comments all around before testing then noticed the eval didn't work, when I got back the old way it didn't compile Any ideas? janitored by ybiC: Balanced <code> tags around codeblock, renamed from "Unknown compile error - desperation"
Back to
Seekers of Perl Wisdom
|
|