And now for another episode of HereDoc theater...

Look at this for a second and see if you get it, eventually you will want to look at perldoc perlop and search down to Regexp Quote-Like Operators or look in the Camel 2ed at page 43 "Here Docs" (I've never found here-documents in perldoc, anyone??? ahh perldoc perldata, thanks tilly!)

print <<BODY; Content-type: text/html <html><head><title>Nocc Call Log</title></head> <body bgcolor="#FFFFFF"> <h1>Nocc Call Log</h1> <table border="4"> <form action="post.cgi" method="POST"> <tr> <td> <h3>Callers Name: <input type="text" name="caller" size="25"></h3> </td> <td bgcolor="#FFDEAD"> <h3>Auto Time : <input TYPE="radio" NAME="time-Type" VALUE="auto_ +time"></h3> <br> <h3>Manual Time : <input TYPE="radio" NAME="time-Type" VALUE="manua +l_time"></h3> </td> <td bgcolor="#FFDEAD"> <h3>Time: <input type=\"text\" name=\"time\"></h3>\n"; </td>\n"; </tr>\n"; BODY # BODY is the end of the heredoc, and CANNOT have space # before or after it unless you get fancy # and do the print above as: # print <<" FANCY WITH Spaces in FRONT"; # and then you would end it with the following, minus the "#": # FANCY WITH Spaces in FRONT

--
$you = new YOU;
honk() if $you->love(perl)


In reply to RE: RE: Something is wrong and I don'tkow what by extremely
in thread Something is wrong and I don'tkow what by monk2b

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.