Click to See Complete Forum and Search --> : fun with perl


UmneyDurak
06-29-2005, 12:57 AM
Hi.
I'm new to perl, so bear with me. Hopefully someone can help me out with this.
I'm trying to use DBI module to connect to SQL database from Unix server. Unfortenatly the admin on Unix server hid the module where the sun don't shine, and didn't add the path to the INV variable. I found the DBI.pm in /usr/local/(some more paths)/1.013/DBI.pm
I'm not sure how to point the script to it.
When I try: use "/usr/local/(some more paths)/1.013";, or
use /usr/local/(some more paths)/1.013; I get syntax error message.
I tried adding it to the inv variable with

use lib "/usr/local/(some more paths)/1.013";
no lib ".";
use DBI;
which didn't work either.

Anyway any help would be appreciated.

Thx.

richardginn
06-29-2005, 06:16 PM
Will this webpage be of any help to you.

http://dbi.perl.org/

UmneyDurak
06-30-2005, 12:15 AM
Hi. Replacing " with ' fixed it. Thx.