I'm trying to print to a file, but this isn't working. How would I print multiple lines of html to a file w/o having to do a print statement for each line of html?
open(PB_BODY_LIMITED, "> $file_name") or die "Can't $!\n"; print PB_BODY_LIMITED " <table width=600> <tr> <th colspan='2' class='top'>-- Perbill Search Results --</th> </tr> <tr> <th class='left'>Company</th> <td>$data[0]</td> </tr> <tr> <th class='left'>Company ID(302)</th> <td>$company_name_id</td> </tr> <tr> <th class='left'> Docs</th> <td>$data[1]</td> </tr> <tr> <th class='left'> Bytes</th> <td>$data[2]</td> </tr> <tr> <th class='left'>From</th> <td>$from_month$from_day$from_year</td> </tr> <tr> <th class='left'>To</th> <td>$to_month$to_day$to_year</td> </tr> </table> ";

qball~"I have node idea?!"

In reply to print multiple lines by qball

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.