Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I use format/write quite a bit, but never exactly this way... ;-)
write effectively keeps a running tally of the number of lines printed on the current page. (To be more precise, $- holds the number of lines remaining on the current page.) Apparently, $- is not getting reset when you close RF and then open it again. You should put $- = 0; right after close RF;. And in order to get that to work, you need to select your filehandle so that $- is associated with RF. Here's a sample:
In reply to Re: format Header only prints on first of several files
by broomduster
|
|