This is the same code you posted on your other thread: Can't Use String as an Array Ref Help!. There is helpful information in that thread, including:

USE STRICT. That will trap obvious problems where you are spelling your variable names differently by mistake -- for example:

my $dbh_b = DBI->connect... my $values = join("," ,map { $dbh_sec->quote($_) } @ar_acc_num );
There is no other occurrence of "$dbh_sec" anywhere in the script except inside that map block. What do you think should happen there?

Please do not post your code here again until you have learned to include use strict; -- it will help you to focus your questions more effectively, and we won't get annoyed about having to explain bone-headed mistakes that you should have been able to catch on your own.

(Also, do check back on your earlier thread, and try to follow suggestions.)


In reply to Re: Undertanding fetchall_arrayref Help! by graff
in thread Undertanding fetchall_arrayref Help! 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.