I am doing a new project and I know I am probably getting annoying with my seemingly endless amounts of questions. However, if you only knew the huge amounts of answers I have figured out on my own, you would probably be amazed. And of course there is the issue of me not actually ever knowing of perl before I got this job, so I am a pretty fast learner.
I have a script that will write stats of user to an email. We have a header for it and then the format of the STDOUT. What I want to know if we have one set of info, how do I write another set just below that?
IE:
Code:
format HEADER =
Username B&W Color Total Total Page Count
--------------------------------------------------------------------------
.
format STDOUT =
@<<<<<<<<<<<<<<<<<< @###### @###### @####.## @######
$_, $BW_amt{$_}, $CL_amt{$_}, $totals{$_}, $tot_page_count{$_},
.
format HEADER2 =
Printer Name Page Count
--------------------------------------------------------------------------
.
format STDOUT2 =
@<<<<<<<<<<<<<<<<<< @######
$printer, $page count
.
of course I kinda want to have this in one script if possible so I am thinking it may have each in a while loop or something. Would that work and have the STDOUT in a while loop???