#!/usr/bin/perl -w use strict; print "Content-type: text/html\n\n"; my @rows = join '', map{"$_"}('router ip', 'sip','dip','sif','dif','proto','sport','dport','pkts','size'); for (@sort_result) { my @tmpdata = split /\|/; push @rows, join '', map{"$_"} @tmpdata[0..7], $flows{$_}{pkts}, $flows{$_}{size}; } @rows = map{ "$_\n" } @rows; print "\n" , @rows, "
";