in reply to Formatting Text...Again
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+.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Formatting Text...Again
by Anonymous Monk on May 22, 2006 at 02:22 UTC | |
by GrandFather (Saint) on May 22, 2006 at 02:41 UTC | |
by lollipop7081 (Novice) on May 22, 2006 at 03:03 UTC | |
by GrandFather (Saint) on May 22, 2006 at 03:07 UTC | |
by SamCG (Hermit) on May 22, 2006 at 13:51 UTC | |
by lollipop7081 (Novice) on May 22, 2006 at 02:24 UTC | |
by cdarke (Prior) on May 22, 2006 at 11:56 UTC |