title: Search pattern using perl
body: <p>Newbie on Perl . </p>
  
  <p>Need assistance in finding the search pattern on FTP server </p>
  
  <p>Below example</p>
  
  <pre><code># more file1
  1 
  2
  3
  </code></pre>
  
  <p>Directory</p>
  
  <pre><code># ls
  1
  2
  3
  4
  </code></pre>
  
  <p>How to search patter which are in the file and match the files in the directory using perl.
  and display as below</p>
  
  <pre><code>1
  2 
  3
  </code></pre>
  
  <p>Appreciate your help</p>