luisfagundes has asked for the wisdom of the Perl Monks concerning the following question:
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;";package BookRetriever; #################################################### # This class uses Vendor plugins to retrieve book HTML pages from vend +or websites, # parse them, insert it into db and return data from db use DBI; use LWP::UserAgent; use Vendor::Amazon; # LINE 8 use Vendor::BarnesNoble; # Here is configuration for everything our %CONFIG = ('db_host' => 'localhost', 'db_name' => 'books', 'db_user' => 'user', 'db_pass' => 'pass', 'html_retrieve_timeout' => 30, 'vendors' => [ qw(Amazon BarnesNoble) ] );
janitored by ybiC: Balanced <code> tags around codeblock, renamed from "Unknown compile error - desperation"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unknown compile error - desperation
by ysth (Canon) on Feb 23, 2004 at 03:44 UTC | |
by luisfagundes (Initiate) on Feb 23, 2004 at 04:14 UTC | |
|
Re: Unknown compile error - desperation
by AidanLee (Chaplain) on Feb 23, 2004 at 02:18 UTC | |
|
Re: Unknown compile error - desperation
by NetWallah (Canon) on Feb 23, 2004 at 03:05 UTC | |
by Anonymous Monk on Feb 23, 2004 at 03:13 UTC | |
by Anonymous Monk on Feb 23, 2004 at 12:59 UTC |