title: Creating a perl script to batch process files
body: <p>I have this line of code:</p>
  
  <pre><code>convert 1234_Page_1_....png 1234_Page_2_....png output.pdf 
  </code></pre>
  
  <p>This merges those particular pngs to a single pdf (using ImageMagick). I have a bunch of files in this format. I would like to perform this merging/converting-to-pdf action on files that have the same number before the "<em>Page</em>". Sometimes there are more than two pages to convert.  </p>
  
  <p>I would like to have this done in a perl script that I can run on Windows. </p>
  
  <p>Thanks in advance,
  Jake</p>