X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlfaq8.pod;h=e2ea3e799bc22cea39153f8f1cbd41cf4a7caf60;hb=86feb2c5020849c60df097178dd21ab793b7c689;hp=31af4bd7df9c2f57c284f2801d76673aba12d0b9;hpb=197aec242db45fbf1d7853a1ae22a108cc09d23c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlfaq8.pod b/pod/perlfaq8.pod index 31af4bd..e2ea3e7 100644 --- a/pod/perlfaq8.pod +++ b/pod/perlfaq8.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq8 - System Interaction ($Revision: 1.16 $, $Date: 2003/01/03 20:03:57 $) +perlfaq8 - System Interaction ($Revision: 1.17 $, $Date: 2003/01/26 17:44:04 $) =head1 DESCRIPTION @@ -1036,9 +1036,15 @@ in L. =head2 How do I use an SQL database? -There are a number of excellent interfaces to SQL databases. See the -DBD::* modules available from http://www.cpan.org/modules/by-module/DBD/ . -A lot of information on this can be found at http://dbi.perl.org/ +The DBI module provides an abstract interface to most database +servers and types, including Oracle, DB2, Sybase, mysql, Postgresql, +ODBC, and flat files. The DBI module accesses each database type +through a database driver, or DBD. You can see a complete list of +available drivers on CPAN: http://www.cpan.org/modules/by-module/DBD/ . +You can read more about DBI on http://dbi.perl.org . + +Other modules provide more specific access: Win32::ODBC, Alzabo, iodbc, +and others found on CPAN Search: http://search.cpan.org . =head2 How do I make a system() exit on control-C? @@ -1132,20 +1138,20 @@ In general, you usually want C and a proper Perl module. =head2 How do I keep my own module/library directory? -When you build modules, use the PREFIX option when generating +When you build modules, use the PREFIX and LIB options when generating Makefiles: - perl Makefile.PL PREFIX=/u/mydir/perl + perl Makefile.PL PREFIX=/mydir/perl LIB=/mydir/perl/lib then either set the PERL5LIB environment variable before you run scripts that use the modules/libraries (see L) or say - use lib '/u/mydir/perl'; + use lib '/mydir/perl/lib'; This is almost the same as BEGIN { - unshift(@INC, '/u/mydir/perl'); + unshift(@INC, '/mydir/perl/lib'); } except that the lib module checks for machine-dependent subdirectories.