Hello all, I've a question for you to ponder. I have recently written a script to rip through a log file, pick out interesting tidbits, and display them in a report, depending on what type of tidit it is. I have all of my reports being called in subroutines, and call them all in succession. My problem is that in the final report, there is a "^L" at the beginning of each report. Is there something that I am doing incorrectly? Here is a sample of one of my subroutines (they are all the same, except for the header and the data they use)
sub DepOverrideRpt { my ($i,$temp); format DepOverride_Hdr= Dependencies Overriden ======================= Job | Time -------------|--------- . my($key, $job, $time); format DepOverride= @<<<<<<<<<<<<|@>>>>>>>> $job,$time . $temp=select(OUTFILE); $~="DepOverride"; $^="DepOverride_Hdr"; $-=0; select($temp); foreach $i (0 .. 1) { foreach $key (sort {$o_override[$i]{$a} cmp $o_override[$i]{$b} } key +s %{$o_override[$i]}) { $job=$key; $time=$o_override[$i]{$key}; write OUTFILE; } } print OUTFILE "=======================\n\n"; }
In the above example @o_override is an array of hashes used to store data from different days (%o_override[0] is a hash containing data from 6am - midnight on day 1, %o_override contains data from midnight to 6am on day 2) Any help would be appreciated, thor

In reply to Control Characters in reports... by thor

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.