Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: printing multiple pages

by choroba (Chancellor)
on Jan 05, 2014 at 11:07 UTC ( #1069385=note: print w/replies, xml ) Need Help??


in reply to printing multiple pages

Print the feed character before every page except the first one:
my $first = 1; until (0 == int rand 10) { # The number of pages is unknown in advanc +e. print "\f" if ! $first; undef $first; print "page...\n"; }
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: printing multiple pages
by hvn52 (Initiate) on Jan 06, 2014 at 15:17 UTC
    Thank for your response. What use is it to print it before every page ?
      Before every page except the first one is the same as after each page except the last one, which is what I understood you had requested.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069385]
help
Chatterbox?
stevieb does not want to know what "different kind" of sausages means

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2017-08-17 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (293 votes). Check out past polls.

    Notices?