Need DBI:Excel and SQL modules

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lavsaxena
    New Member
    • Apr 2009
    • 13

    Need DBI:Excel and SQL modules

    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/Statement.pm line 14.
    BEGIN failed--compilation aborted at D:/Perl/lib/SQL/Statement.pm line 14.


    When I looked in D:/Perl/lib/SQL/Statement.pm file, at step 14 is calling following statement "use Clone qw(clone);" .... although there is no sub routine with name clone in Clone.pm. 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
    -Lav
  • nithinpes
    Recognized Expert Contributor
    • Dec 2007
    • 410

    #2
    The Clone.pm module has a clone() method defined in it. Try reinstalling the module.
    The error points out that Clone module is either not installed or Clone.pm 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.

    Code:
    use lib 'new\path';
    OR

    Code:
    BEGIN {
    
     push @INC, 'new\path';
    }

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      Clone.pm 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.

      Comment

      • lavsaxena
        New Member
        • Apr 2009
        • 13

        #4
        ok...let me try this way.....

        thanks.....

        Comment

        Working...