title: How to format output into columns?
body: <p>How can I modify the following script to that it displays each value in its corresponding colum:
  The body of the script looks like this:</p>
  
  <pre><code>( $vmdisk, $totalio, $readpercentage, $cachehitpercentage, $currentkbpersecond,
    $maximumkbpersecond, $currentiopersecond, $maximumiopersecond
  ) = split (",", $line);
  $totalio =~ s/\"//g;
  $readpercentage =~ s/\"//g;
  $cachehitpercentage =~ s/\"//g;
  $currentkbpersecond =~ s/\"//g;
  $maximumkbpersecond =~ s/\"//g;
  $currentiopersecond =~ s/\"//g;
  $maximumiopersecond =~ s/\"//g;
  
  print "totalio:$totalio readpercentage:$readpercentage cachehitpercentage:$cachehitpercentage currentkbpersecond:$currentkbpersecond maximumkbpersecond:$maximumkbpersecond currentiopersecond:$currentiopersecond maximumiopersecond:$maximumiopersecond";
  </code></pre>
  
  <p>This will display this type of formatted output:</p>
  
  <pre><code>totalio:75.0 readpercentage:20.0 cachehitpercentage:93.3 currentkbpersecond:33.8 maximumkbpersecond:33.8 currentiopersecond:15.0 maximumiopersecond:15.0
  </code></pre>
  
  <p>everything is in one line. My goal is to get the output into columns and make it more readable. For example like this:</p>
  
  <pre><code>totalio readpercentage cachehitpercentage
  
  75.00 20.0 93.0
  </code></pre>
  
  <p>How can I do this?</p>