title: How do I perform decimal arithmetic in Perl?
body: <p>I'm working on an accounting script written in Perl and I'm wondering what's the 'proper' way to perform decimal arithmetic calculations. For instance, I want to insure that comparisons like these work correctly:</p>
  
  <pre><code>"0.1" + "0.1" + "0.1" == "0.3"
  "258.9" * "2000" == "517800"
  ...
  </code></pre>
  
  <p>In Python I'd use the <code>Decimal</code> type for the values, but what do I do in Perl?</p>