I have only 3 files for PERL:
run.pl mainModule.pm (here I get the statistics info) and htmlModule.pm
RUN.PL:It consists of calls to sub routines.
1. Are the calls to subroutines in mainModule.pm to get the numbers (for statistic) for each file (html) -> this is stored in hash. After having values, I store also the elements that have this values inside @array1
2. Back to .pl I loop the Array to store the numbers inside variables, these variables will be then put inside HTML to as values for the chart. I use something like:
foreach $element (@array1){ $var1 = $hash{value1}; $var2 $hash{value2} createBarchart(....); }
I use 2 different run.PL, because there are two different database's that I get the values from (for e.g. database1 and database2 -> they differ with unique ID which I provide as an INPUT when I call subs that get me the values)
In reply to Re^2: Problem with creating Files
by David92
in thread Problem with creating Files
by David92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |