CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES PERL DETAILS
Question :
How do you connect to database in perl


Category Perl Interview Questions
Rating (3.0) By 1 users
Added on 7/19/2006
Views 1188
Rate it!
Answers:

There is DBI module.use DBI;my $dbh = DBI->connect('dbi:Oracle:orcl', 'username', 'password',)where username and password is yours. THis is exmaple for oracle database.



For Sybase:

use DBI;
my $dbh = DBI->connect('dbi:Sybase:server=$SERVER', 'username', 'password')



 Posted by: Divya Gupta    

Contact Divya Gupta  Contact Divya Gupta


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What is your experience of interfacing Perl to database?

View Answer
What are the benefits of having global and local variables?

View Answer
Advantages of C over perl?

View Answer
"perl regular expressions are greedy" what does this mean?

View Answer
what does this mean :
'$_' ?

View Answer
What does the word '&myvariable' mean?
What does the symbol '&' means? What's purpose of it?

View Answer
What is a subroutine?

View Answer
What does 'qw(..)' mean? What's the use of it?
when do we use it?

View Answer
What does this symbol mean '->'

View Answer
What is meant by a 'pack' in perl?

View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL Perl Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/6195/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

1.19