Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Using Modules

by earthboundmisfit (Chaplain)
on Dec 12, 2002 at 16:42 UTC ( [id://219364]=note: print w/replies, xml ) Need Help??


in reply to Using Modules

At a command prompt, type perl -V (make sure it's a capital V)... somewhere in the out put (at the end on my W2K WS) is the contents of @INC
@INC: C:/Perl/lib C:/Perl/site/lib .
Modules on my WS exist in either of these two directories. To install modules on Windows, try using PPM if you have the ActiveState distro or CPAN.pm if some other.
C:\>ppm PPM interactive shell (2.1.5) - type 'help' for available commands. PPM> install DBI Install package 'DBI?' (y/N):
BTW, I highly recommend using the DBI module over Win32::ODBC

---- I am what I read

Replies are listed 'Best First'.
Re: Re: Using Modules
by vek (Prior) on Dec 12, 2002 at 17:19 UTC
    BTW, I highly recommend using the DBI module over Win32::ODBC

    Don't forget that you'll also need DBD::ODBC as well.

    -- vek --
      A lot depends on the monk's RDBMS. I prefer a native DBD::MySQL driver to the more generic ODBC connect, but to each their own.

      snippet to list ODBC data sources:

      #! perl -w use strict; use DBI; my @driver_names = DBI->available_drivers; print join("\n",@driver_names), "\n"; my @dataSources = DBI->data_sources ("ODBC"); print join("\n-",@dataSources);
      ---- I am what I read
Re: Re: Using Modules
by Anonymous Monk on Dec 12, 2002 at 18:25 UTC
    I downloaded the DBI module and used WINPKZIP to extract it into a folder in my perl dir. Now what? I seem to have PPM installed, but I can't find a ppd file for DBI. The docs say to copy the module into my perl directory, but I'm not sure what to copy to where. Man, I feel dumb!! Thanks for you help.
      RTFM ;-)

      You can browse the repositories and use set to tell PPM to look in the one you know has the module you want. Type help set at the PPM shell to learn about this.

      ---- I am what I read

        Sorry to be a pain. Thanks for your help.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://219364]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-28 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found