title: How can I run a perl script in a jenkins pipeline step
body: <p>I have configued a pipeline script in jenkins . In one stage , I need to run a perl script with arguments ,like :</p>
  
  <pre><code>pipeline{
  
   agent any
  
      stages {
  
       stage('First Stage')
          {
              steps
              {
                   dir ("path_to_script")
  
                   sh "#!/usr/bin/perl -w test.pl --arg ar1 --arg ar2 --arg ar3"
              }
  
          }
  </code></pre>
  
  <p>This code is not helping me. How can I execute the script test.pl ?</p>