
trento
New User
Apr 9, 2010, 2:50 PM
Post #1 of 1
(436 views)
|
|
WRITE FORMAT $=, $- vars problems
|
Can't Post
|
|
Hi, I'm using perl program with < write FORMAT> to generate some reports and having problems to to deal with page break and line-per-page-no. I can't manipulage with global $= and $-, no matter what I do after wanted page break (if break $- =0;) or how I set number of lines ($= = 33) I still have defaulted 60 lines per page and don't have wanted page breaks. I tried to refer to them both as $= / $FORMAT_LINES_PER_PAGE, or $- / $FORMAT_LINES_LEFT , in fact if I let say $FORMAT_LINES_PER_PAGE =33, then $= still shows 60 . Have <use strict;>. I see that $- doesn't get changed during the execution, it's alwayse = 0. and I see that var $% (page#) works just fine, get incremented by 1 . Appreciate your help, is any package I'm missing, I'm using most recent ActivePErl on Wxp. In worst case how I can turn off auto write format_TOP? so I will switch to my local vars. Tx Trent
(This post was edited by trento on Apr 9, 2010, 3:04 PM)
|