title: Formatting output with perl?
body: <p>Hey guys, total perl rookie here. I'm running a tf2 server, and I have a simple perl script I found that pulls back the stats of it. I need to edit the formatting of it so that cacti can read it nice and proper. 
  The script is this:</p>
  
  <pre><code>use Rcon::HL2;
  
  my $rcon = Rcon::HL2-&gt;new(
      hostname =&gt; "myserverhere",
      password =&gt; "omgawesomepassword",
  );
  </code></pre>
  
  <p>When I run it, it returns:</p>
  
  <pre><code>0CPU   In    Out   Uptime  Users   FPS    Players
  0.00  0.00  0.00     514     9  956.02       0
  </code></pre>
  
  <p>Initially, I'd like for it to just output the numbers - <code>0.00 0.00 0.00 514 9 956.02 0</code>, perhaps separated by a tab or comma. </p>
  
  <p>Can anyone help me out with this? 
  I was looking around and messing with cut and sed and such but can't seem to find the right way for me to get it done. Ideally, I'd like to be able to run myscript.perl -cpu, or myscript.pl -in, etcetc to return just those bits, but I think if someone can show me how to manipulate the output I can figure out the rest.</p>
  
  <p>Thank you!</p>