http://qs321.pair.com?node_id=14358

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I want to print an email, but after a certain amount of lines, i want the printer to continue on a new page. There is preprinted things on the paper that i dont want printed on.

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: How do I use formfeed on an email?
by schweini (Friar) on Feb 15, 2003 at 11:04 UTC
    if you're directly talking to the printer, sending a "\f" (formfeed) should do the trick.
Re: How do I use formfeed on an email?
by chromatic (Archbishop) on Jun 06, 2000 at 02:58 UTC
    If you use a format, the special variable $= (or, if you use English, $FORMAT_LINES_PER_PAGE) can be set to the page length you want. Default is 60.
Re: How do I use formfeed on an email?
by comatose (Monk) on May 23, 2000 at 17:55 UTC

    I may be totally wrong here, but to me this would depend on your printer (if you're talking directly to the printer device) or your print driver (if you're talking to the driver or something else in between).

    Like line breaks (\r\n vs. \n vs. \r), Perl doesn't define how this would work, your hardware or operating system would.