All pastes #607534 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-07 17:53 UTC
rendered paste body
print "id,type,level\n";
for (my $x = 1; $x <= $#sortedbuildings; $x++) {
   if (exists $sortedbuildings[$x])
   {
     print "$x"; 
     for (my $y = 0; $y <= $#{$sortedbuildings[$x]}; $y++) {
       print ",$sortedbuildings[$x][$y]"; 
       } 
     print "\n";
   }