Dear Monks- I am going crazy trying to figure out what i'm doing wrong (and i'm sure it's something that'll be obvious). I'm getting the "Use of uninitialized value in concatenation (.) or string at ... line 33." message, but it seems to me that everything must be initialized? what am i missing?

(i'm just using line 33 as a debugging line - it's really part of an SQL statment, but since i keep getting this error, although with a prior edit, it wasn't happening, and i'm not sure what i might have inadvertantly added or deleted

2 use strict; 3 use CGI qw/:standard :html3 :netscape/; 4 use Win32::ODBC; 5 use POSIX qw(strftime); 6 7 my $q = new CGI; 8 my ($mdy, $nomname, $nomemail, $nominst, $submitname, $submitemail, +$submitcat, $submitinst, $submitdiv, $mentor, $ptcare, $clinres, $com +ments); 9 10 my %in = map { $_ => $q->param($_) } $q->param; 11 for (keys %in) { 12 $in{$_} =~ s/'/''/g; 13 print "$_ = $in{$_}</p>"; 14 } 15 16 $mdy = strftime "%m/%d/%Y %H:%M:%S",localtime; 17 $nomname = $in{NOMNAME}; 18 $nomemail = $in{NOMEMAIL}; 19 $nominst = $in{NOMINST}; 20 $submitname = $in{SUBMITNAME}; 21 $submitemail = $in{SUBMITEMAIL}; 22 $submitcat = $in{SUBMITCAT}; 23 $submitinst = $in{SUBMITINST}; 24 $submitdiv = $in{SUBMITDIV}; 25 $mentor = $in{MENTOR}; 26 $ptcare = $in{PTCARE}; 27 $clinres = $in{CLINRES}; 28 $comments = $in{COMMENTS}; . . 33 print "('$mdy','$nomname','$nomemail','$nominst','$submitname','$su +bmitemail', '$submitcat','$submitinst','$submitdiv','$mentor','$ptcar +e','$clinres', '$comments')";
TIA for pointing out where i'm being stupid (and any other pointers would be greatly appreciated - i'm a part-time/hobbyist perl programmer - wish i had more time to learn perl properly!!).

In reply to help with strict by jck

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.