split problem

Steve Meier smeier1 at san.rr.com
Tue Jul 4 19:03:35 CDT 2000

I am so close to formatting this data but it's just not behaving the way I'm expecting. This is a sample of the output of what I'm formatting:

[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-25.0 sec   188 MBytes  60.2 Mbits/sec
[  6]  0.0-25.0 sec   277 MBytes  88.5 Mbits/sec
[  5]  0.0-25.0 sec   112 MBytes  35.7 Mbits/sec
[  3]  0.0-25.0 sec   195 MBytes  62.4 Mbits/sec
[  5] 25.0-50.0 sec   196 MBytes  62.7 Mbits/sec

My split function is this:

($id, $interval, $transfer, $bandwidth) = split (/\s+/, $_);

What I'm doing is breaking this up to out put it into a html table.

Everything is good except for the first line "[ ID] Interval       Transfer     Bandwidth"

What happens is "Interval and Transfer" end up in the same collumn and "Bandwidth" ends up in the column that "Transfer" should be in.

I've tried everything I can think of!!!! If anyone has any sugestions it would most appreciated!!

Happy 4th,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/archives/san-diego-pm/attachments/20000704/e62c93bf/attachment.htm

More information about the San-Diego-pm mailing list