but where is the sample of your code? I seem to recall seing something like this file before and I know that code was suggested, so you should at least have the centering problem sorted out.

The new page (form feed) character is \f. So print "\f"; generates a new page on STDOUT.

Putting page numbers at the top or bottom of each page seems trivial to me. From the answers to your previous question you already know how to center stuff. You do know that print "Page: $pageNum\n" gets the contents of $pageNum interpolated into the string and thus printed don't you?

Tell us where you are actually having trouble. Show us the code that doesn't do what you want and tell us, or show us with some sample output, what you expect. BTW, don't show us two complete pages of output where there are only 6 interesting lines. Show us the 6 interesting lines with elipsis (...) to indicate omited stuff. That way we can see what you are interested in much more easily. If we can run your sample code and get your sample output then you have asked a question worth a B+. If you show us what you would like and explain where your problem is too you get an A+.


DWIM is Perl's answer to Gödel

In reply to Re: Formatting Text...Again by GrandFather
in thread Formatting Text...Again by lollipop7081

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.