title: Detect OS type using Perl
body: <p>I want to use Perl to detect the OS type.</p>
  
  <p>For example:</p>
  
  <p>Let's say I have an installer, in order to know which commands the installer needs to run. I'll have to detect what operating system is installed, for example Linux. Let's say it's Linux. Now which type of Linux?</p>
  
  <ul>
  <li>Fedora</li>
  <li>Ubuntu</li>
  <li>CentOS</li>
  <li>Debian</li>
  <li>etc.</li>
  </ul>
  
  <p>How would I do this?</p>