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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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

New User

Apr 9, 2010, 2:50 PM

Views: 839
WRITE FORMAT $=, $- vars problems


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.



(This post was edited by trento on Apr 9, 2010, 3:04 PM)

Edit Log:
Post edited by trento (New User) on Apr 9, 2010, 2:59 PM
Post edited by trento (New User) on Apr 9, 2010, 3:03 PM
Post edited by trento (New User) 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