title: split string with "."
body: <p>I am trying to split a string with <code>"."</code> but getting nothing in the array. File name is <code>"Head-First-Java-2nd-edition.pdf"</code> After splitting I want to extract extension, but don't know why it is giving blank array.</p>
  
  <pre><code>my @fileInfo = split(/./, $filename);
   &amp;logMsg("Array is: @fileInfo");
  </code></pre>