Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
As for the values, here's a print out of the only hash key I have so far:
6 fface.gif http://www.go.com 19 8 4
foreach (sort keys %db) { my ($starttime, $filename, $pageurl, $exposure, $clicks) = split(/\ +|\|/, $db{$_}); my $ctr = $clicks / $exposures * 100; #my $ctr = "4"; $ctr =~ s/(\.\d\d)\d*/$1/; print <<"ALL"; <tr> <td>$_</td> <td><center>$filename</center></td> <td><center>$pageurl</center></td> <td><center>$exposure</center></td> <td><center>$clicks</center></td> <td><center>$ctr</center></td> </tr> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: illegal division by zero
by Caron (Friar) on Jan 30, 2004 at 08:29 UTC | |
|
Re: illegal division by zero
by PodMaster (Abbot) on Jan 30, 2004 at 08:26 UTC | |
|
Re: illegal division by zero
by coec (Chaplain) on Jan 30, 2004 at 08:30 UTC | |
|
Re: illegal division by zero
by pelagic (Priest) on Jan 30, 2004 at 08:36 UTC | |
by Anonymous Monk on Jan 30, 2004 at 08:58 UTC | |
by pelagic (Priest) on Jan 30, 2004 at 09:22 UTC |