
Forcing format to print top of page
Hello:
I am creating a report which should print the top of page every time
the id changes, regardless of the number of lines used.
Here is the code. Can you please point out my mistake? Thanks for
your help!
gavs.
#!/usr/bin/perl
$= = 45;
while (fetching results from db) {
if ($new_id != $cur_id) {
$new_id = $cur_id;
##$% = 46;
$- = 0;
}
write(OUTFILE);
Quote:
}
format OUTFILE_TOP=
.
.
.
format OUTFILE=
.
.
.
close OUTFILE;