> On Fri, 8 Mar 2002 12:33:24 -0800 (PST), Margie New <[EMAIL PROTECTED]> wrote:
>
> >>Is there a Perl function similar to php's phpinfo()
> >>that echos or returns a complete synopsis of the Perl
> >>configuration core? We are trying to determine whether
> >>the MySQL DBI/DBD module is accessible to Perl on a
> >>Linux server.
> >>Will appreciate any help on this.
> >>-- Margie New
On Fri, 8 Mar 2002, Curtis Maurand wrote:
>
> for $key (sort keys %ENV)
> {
> print "$key = $ENV{$key}\n";
> }
>
> Page 155 of learning perl 1st (purple) edition.
>
> Curtis
>
This will print the environment variables. It won't tell you anything
about how Perl is set up or which modules are installed.
On Fri, 8 Mar 2002, Mike(mickalo)Blezien wrote:
>
> at the command line: perl -V or perl -v
>
perl -v will tell you which version of Perl, perl -V will tell you the
version, how it was compiled, and the library path (@INC) where Perl will
look for modules. It will not tell you which modules are installed.
--
At the command line, you could try `perldoc DBD::mysql`. If the mysql
module is there, you should see the doumentation.
In Perl, you could use the available_drivers DBI method, like this:
#!/path/to/perl
use DBI;
$, = "\n";
print DBI->available_drivers;
You should see "mysql" in the output if the DBD::mysql module is there.
Michael Stassen
University Information Technology Services
Indiana University Bloomington
[EMAIL PROTECTED]
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php