Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: printing multiple pages

by Preceptor (Deacon)
on Jan 05, 2014 at 10:44 UTC ( #1069378=note: print w/replies, xml ) Need Help??

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' ?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069378]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (16)
As of 2016-10-24 15:09 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (308 votes). Check out past polls.