CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
WRITE FORMAT $=, $- vars problems

 



trento
New User

Apr 9, 2010, 2:50 PM

Post #1 of 1 (541 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)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives