5% assure discount from here only

Tuesday, January 25, 2011

(14) How to write a simple Perl Database Script?

Solution :

Perl packages enabling your Perl scripts to create and modify databases in standard Unix formats. Perl programmers, like programmers of any other language, typically need to store large amounts of data. Even
though Perl is an exceptional language for text processing, in many circumstances, a more structured
database-like format offers quicker access. In addition, it may also be necessary for a Perl script
to read or write a database that is also accessed through a C program.

Here is the very simple script of perl database connection. The database can be Oracle, Mysql etc etc.

use DBI;

$dbh = DBI->connect("dbi:mysql:xyz", $username, $password)
or die $DBI::errstr;

3 comments:

  1. hi guys I studied for Introduction computer science programming,I am in first year, but now in the last stage I have to make a program using perl (open code project using perl) ,,, can I create a program for me....thank you

    ReplyDelete
  2. Hi, I can create program for you, but can you give some details about your project.

    ReplyDelete
  3. there is the email that send me a professor..

    The project should have considered these things:
    The project will apply your knowledge to program one or more simple algorithms in asingle program operational. This program will be uploaded on the server through your account , and assessed based on accuracy (not executed programs that receivezero points), correctness (juat program must address the problem of giving) and levelof difficulty.

    Your program should be executable code revert to a standard algorithm ,andsolve a particular problem
    The system will automatically reject the two programs that are similar so we shouldcast the opinion now that can copy from each other.
    You learn in this subject several techniques that can be use in solving various problems. for example, can build a program that prints a calendar days of the year. ora program that takes data as the daily press reports, and finds all articles that talkabout a given topic. There are problems with simple, as for example to build aprogram that reads the lecture schedule of the current semester and generates apotential schedule for final exams, provided that there is no clash of schedules.

    These are just some ideas of the moment, I encourage you to think about the originalproblems that require a solution through a program. Will be assessed even in thiselection will do, form in the imagination of a problem is just as important as solving the problem

    ReplyDelete