I thought at first it might be the \n at the end of the print statement at the end, I removed it and still get the warning. Can anyone point me in the right direction? Ill post the config file ...
No need to post the config file just yet. Do you understand the error? Can you write a one-liner that will reproduce the error? Here's an example
perl -we"print $_" Use of uninitialized value in print at -e line 1.
Is that close to what you wrote? Now try this
perl -Mdiagnostics -we"print $_"
Use of uninitialized value in print at -e line 1 (#1)

    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in.  Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program.  For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.
So what is line 95 of your program? It's
print NEWSTATS "$name,$sts,$svcwatch,$description,$nowstring\n";
So what does the error message mean then? It means that either $name, $sts, $svcwatch, $description or $nowstring is undefined.

Do you now know how to fix it?

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Considered by holli: "make this a categorized answer." Vote (keep/edit/delete)=6/9/1
Unconsidered by davido: Consideration doesn't make sense. Without the thread, moving this reply would take it out of context.


In reply to Re: Use of uninitialized value warning on print by PodMaster
in thread Use of uninitialized value warning on print by tcf03

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.