title: How to split string in Perl
body: <p>I have a variable that contains path.</p>
  
  <pre><code>my $path = '../images/abc.png';
  </code></pre>
  
  <p>I want to split this into 2 path such that:</p>
  
  <pre><code>my $directory = '../images';
  my $FileName = 'abc.png';
  </code></pre>
  
  <p>How to do that?</p>