You can't just copy DBI.pm. The best thing is to install DBI using apt-get or rpm or ppm or whatever package manager is available for your platform or with CPAN.pm or with a manual make install method. If you get stuck with using one of those, ask in the CB or post another question.
Even once it gets installed, you're going to have to make sure that your use lib directory is pointing to the right place, it should be an absolute path to your directoy, not a URL.
If you absolutely can not get it installed, there is a way to cheat and use a pure perl version of DBI and a pure perl version of the MySQL driver. You'd have to copy the entire
lib directory from the DBI distribution, put $ENV{DBI_PUREPERL}=1; at the top of your script (before your use DBI statement) and then use the DBD::mysqlPP. driver. I do not recommend this, you're much better off installing the full DBI.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.