title: What would the perl commands be for this script?
body: <p>I have a short bash script that finds the release ID in /etc/os-release, and prints a string based on that result. I would like to convert it to perl, if possible. I'll appreciate any help with this.</p>
  
  <p>Here is the script that I'm using:</p>
  
  <pre><code>#!/bin/bash
  
  grep "ID=fedora" /etc/os-release &gt; /dev/null 2&gt;&amp;1
  if [ $? = 0 ]; then
  echo "You are running Fedora"
  else
  echo "You are running Ubuntu"
  fi
  </code></pre>
  
  <p>Thanks, and have a great day.:)
  Patrick.</p>