I have a Perl format that doesn't want to print the top of the report.

open EOS_REPORT, "| lp -d lex_text" or die "Cannot open EOS report for + printing: $!"; # lots of code to assemble data write EOS_REPORT; close EOS_REPORT; format EOS_REPORT_TOP = @>>>>>>>>>>>>>>>>>>> 'Page: ' . $% @|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| "End of day register report" @|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| $today Run by: @<<<<<<<<<<<<<<<<<<<< @>>>>>>>>>>>>>>>>>>>>>>>>>>>> $name, "Terminal: ".$hostname . format EOS_REPORT = Total Sales --------------- @>>>>>>>>>>>>>> $total Total Cash Total Account Total Check --------------- --------------- --------------- @>>>>>>>>>>>>>> @>>>>>>>>>>>>>> @>>>>>>>>>>>>>> $tcash, $taccount, $tcheck CC Manual Auth Total Credit --------------- --------------- @>>>>>>>>>>>>>> @>>>>>>>>>>>>>> $tcc_man_auth, $tcredit @|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| "Price Overrides" @|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| "(Negative quantities are overrides on refunds)" Clerk SKU Old price New price ------------------- -------------------- ---------- ---------- ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~ $override_report .

I can't find anything that I've changed, but the top of the report used to print and now it doesn't. I don't know formats terribly well, so I don't know what to look for. I haven't found any references anywhere which indicate what the problem might be.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


In reply to Top of format won't print by Ovid

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.