title: Convert Memory Size (Human readable) into Actual Number (bytes) in Perl
body: <p>Is there an actual package in CPAN to convert such string:</p>
  
  <pre><code>my $string = "54.4M"
  my $string2 = "3.2G"
  </code></pre>
  
  <p>into the actual number in bytes:</p>
  
  <pre><code>54,400,000
  3,200,000,000
  </code></pre>
  
  <p>And vice versa.</p>
  
  <p>In principle what I want to do at the end is to sum out all the memory size.</p>