Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: printing multiple pages

by Preceptor (Chaplain)
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.


Comment on Re: printing multiple pages
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-11-28 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls