in reply to Re: Problem with creating Files
in thread Problem with creating Files
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem with creating Files
by poj (Abbot) on Jul 25, 2014 at 10:18 UTC | |
|
Re^3: Problem with creating Files
by AppleFritter (Vicar) on Jul 25, 2014 at 10:12 UTC |