The reason for the "uninitialized" warnings is that you have an off-by-one error in your for loops. They attempt to go beyond the size of the array. You can prove this to yourself by printing the value of $a, for example, inside your outermost loop. The quickest fix is to change <= to <. For example, change:
for ($a=0; $a<= scalar(@abst_listing); $a++){

to:

for ($a=0; $a< scalar(@abst_listing); $a++){

A more Perl-ish way to create this for loop is as follows:

for my $a (0 .. $#abst_listing){

Notice that I declared the loop variable in the for statement itself. You should do the same for your b and c loops as well.

If you had shown some actual data, it would be easier to figure out why you are not getting the matches you expect. Perhaps some other tips in the Basic debugging checklist will help you. If your arrays contain metacharacters, perhaps you need to use quotemeta for your regular expressions. You could try to chomp your arrays, then simplify your regexes by removing the //m modifiers.

As a side note, your get_data sub is very similar to File::Slurp::read_file.

use lib'/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/DBD/mys +ql.pm';
I don't think that does what you want. lib "is typically used to add extra directories to perl's search path", but you are trying to specify a module file. Perhaps this is what you meant:
use lib '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi';

Update: fixed typo (thanks amedico).


In reply to Re: Some problem pattern matching by toolic
in thread Some problem pattern matching by eMBR_chi

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.