Hey

When using warnings (#!/usr/bin/perl -w), I recieve the following warnings: First time I came across this:
Use of uninitialized value in concatenation (.) or string at E:\Web Si +tes\Contrarian Investments\Contrarian-Investments Web folder\signup.p +l line 98. Use of uninitialized value in concatenation (.) or string +at E:\Web Sites\Contrarian Investments\Contrarian-Investments Web fol +der\signup.pl line 98. Use of uninitialized value in concatenation (. +) or string at E:\Web Sites\Contrarian Investments\Contrarian-Investm +ents Web folder\signup.pl line 98. Use of uninitialized value in conc +atenation (.) or string at E:\Web Sites\Contrarian Investments\Contra +rian-Investments Web folder\signup.pl line 98. Use of uninitialized v +alue in concatenation (.) or string at E:\Web Sites\Contrarian Invest +ments\Contrarian-Investments Web folder\signup.pl line 98.


Line 98 goes as:
$error_html = "<font size=\"2\" face=\"verdana\" color=\"#CCCCCC\"><b> +Please fix the following errors:</font><font size=\"1\" face=\"verdan +a\" color=\"#003471\"><br>$error_msg_x<br>$error_msg_xx<br>$error_msg +_xxx<br>$error_msg_pw_xxx<br>$error_msg_pw_x<br>$error_msg_pw_xx<br>$ +error_msg_terms<br>$error_msg_email<br>$error_msg_city<br>$error_msg_ +state<br>$error_msg_date<br>$error_msg_zip<br></b></font>";


Its a scalar mixed with a little html and a bunch of error scalars produced from a sign up form. If I take out the warnings option, it produces no warning message, and therefore my HTML looks as planned.

Once I call the function &sign_html($error_html); is when I see the warning messages.

Should I continue to use Warnings option and try to fix the warning messages? It seems as the scalar produces the warning errors, when replacing $error_html = "hey"; , the html prints fine with no warnings.

Thank you
Anthony

In reply to Warnings, strict HTML scalar by perleager

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.