Re: Average from array of arrays

2006-04-22 Thread John W. Krahn
The Other1 wrote: > Hi John, Hello, > Thank you so much for the code you posted, it works great and is pretty > elegant. If you have a second, could you explain this line to me? > > if ( $row->[ $column ] =~ /^[\d.+-]+$/ ) { > > And this one as well: > if ( $column =~ /^[\d.+-]+$/ ) {

Re: Average from array of arrays

2006-04-21 Thread John W. Krahn
The Other1 wrote: > Hi all, Hello, > Sorta newbie here... > > I have parsed log files and have an array of arrays that looks like this: > > [...] > 1 0.0 0.000 31.954 36.169 12.645 20:40 > 16 1048.0 16.196 15.825 52.502 5.150 20:40 > 8 1281.7 12.059 9.634 41.264 4.869 20:40 > 9 1157.7 19.094 16

Re: Average from array of arrays

2006-04-21 Thread Mr. Shawn H. Corey
On Thu, 2006-20-04 at 20:55 -0600, The Other1 wrote: > My question is how to walk through the array grabbing column 1 of four rows, > pass those values to the Average function (or if there is a beter way, I am > open to it!), store the average to be used by GD later, then do the next > column, e

Average from array of arrays

2006-04-21 Thread The Other1
Hi all, Sorta newbie here... I have parsed log files and have an array of arrays that looks like this: [...] 1 0.0 0.000 31.954 36.169 12.645 20:40 16 1048.0 16.196 15.825 52.502 5.150 20:40 8 1281.7 12.059 9.634 41.264 4.869 20:40 9 1157.7 19.094 16.889 52.218 4.742 20:40 0 0.0 0.000 76.430 10