http://www.perlmonks.org?node_id=1069378


in reply to printing multiple pages

A code example might help. It sounds like you're doing a loop where you're printing some stuff, printing linefeed, repeat?

Sounds like you 'simply' need to check if you printed any text on the last loop. Maybe by appending '\f' to your text as you print?

Hard to be more specific without a clearer idea of what you're aiming for, and doing already.

Replies are listed 'Best First'.
Re^2: printing multiple pages
by hvn52 (Initiate) on Jan 06, 2014 at 15:15 UTC
    Hi, Thanks for responding. I'm using a loop to walk through either once or x times, depending on the number of sheets to print. At the end of this loop, there's the '\f'. I've put it there because there are empty lines left until the end of the page. Would you recommend to use  print "\n * (number of lines left)"; instead of '\f' ?