By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,541 Members | 1,455 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,541 IT Pros & Developers. It's quick & easy.

Need DBI:Excel and SQL modules

P: 13
I am using excel as database for my project. We are getting following error while making database connection,

install_driver(Excel) failed: Can't locate loadable object for module Clone in @
INC (@INC contains: D:/Perl/site/lib D:/Perl/lib .) at D:/Perl/lib/SQL/Statement
.pm line 14
Compilation failed in require at D:/Perl/lib/SQL/ line 14.
BEGIN failed--compilation aborted at D:/Perl/lib/SQL/ line 14.

When I looked in D:/Perl/lib/SQL/ file, at step 14 is calling following statement "use Clone qw(clone);" .... although there is no sub routine with name clone in Can any body to help to solve this problem. Do we have incomplete package, if it is then please suggest the link where we can get the complete module.

Thanks in Advance
May 6 '09 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 410
The module has a clone() method defined in it. Try reinstalling the module.
The error points out that Clone module is either not installed or in not present in the paths contained in @INC (library paths). If the module is present in a different location, use one of the following approaches to add the path. Both of these need to be at the beginning of script.

Expand|Select|Wrap|Line Numbers
  1. use lib 'new\path';

Expand|Select|Wrap|Line Numbers
  1. BEGIN {
  3.  push @INC, 'new\path';
  4. }
May 7 '09 #2

Expert 2.5K+
P: 4,059 does not come with perl so you will need to try and install it. See the Perl Package Manager (PPM) instructions in the activeperl documentation for instructions on how to install modules.
May 7 '09 #3

P: 13
ok...let me try this way.....

May 8 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.