Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2018-04-25 23:01 GMT
Find Nodes?
    Voting Booth?