title: Exclude files that end with a certain file extension
body: <p>I would like to get all files in, say, the working directory, excluding files that, for example, end with <code>.pl</code>. So, <code>test.pl</code> should be excluded but not <code>test.txt</code> or <code>test.xyz</code></p>
  <p>The expression <code>glob(&quot;.* *&quot;)</code> matches all the files in a working directory and seems to be working well. Except for the part of excluding files that end with <code>.pl</code>. I have tried several expression including <code>*(?!.pl),</code> but none seem to work.</p>