title: How to check if a Perl script doesn't have any compilation errors?
body: <p>I am calling many Perl scripts in my Bash script (sometimes from csh also).</p>
  
  <p>At the start of the Bash script I want to put a test which checks if all the Perl scripts are devoid of any compilation errors.</p>
  
  <p>One way of doing this would be to actually call the Perl script from the Bash script and <code>grep</code> for "compilation error" in the piped log file, but this becomes messy as different Perl scripts are called at different points in the code, so I want to do this at the very start of the Bash script.</p>
  
  <p>Is there a way to check if the Perl script has no compilation error?</p>