You've provided no indication of your level of Perl expertise or the context of the project you're working on. Accordingly, I'll assume the lowest common denominators for both: minimal Perl knowledge and a small (personal/hobby/learning) project.

Read "perlintro: Perl introduction for beginners". Each section is fairly basic but also provides links to more detailed information and advanced topics: follow these as required.

For "I have to read this file", you'll want to focus on the "Files and I/O" section in that document.

For your database work, look at DBI. This isn't a core (builtin) module so you'll need to install it: you can use the builtin cpan utility for that task.

You'll also need a database driver module (and you'll need to install that as well). These modules have names like DBD::xxx, where xxx will be something like Oracle. You provided no information about the database system you're using; search CPAN for an appropriate "DBD:: module".

At some later point, having done all this, you may require further assistance. To get the best and quickest responses, follow the guidelines in "How do I post a question effectively?".

-- Ken


In reply to Re: reading txt and update into database table by kcott
in thread reading txt and update into database table by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.