hi every1,
i don't know why this code doesn't produce any error. this is the first time i'm using a mysql db on a shared computer. basically this code does not give me a error...i don't know how else to debug this.

the below code only prints "hey". It stops after that?? I can't get it to print a error and it doesn't print "hi".

Even if i SWITCH "or print" with "or die", it seems to die but w/out no error. whats wrong with this? i also installed the latest version of DBI for ActiveState too.

sub dbi_test { use DBI; print "hey"; my $dbh_r = DBI->connect('DBI:mysql:mydb_name:host=pctwo') or print "C +ouldn't connect to database: " . DBI->errstr; print "hi"; }
Any ideas on what I can do to see what the problem is here?

thanks!

In reply to How come no DBI error?? by tanger

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.