title: Why is split on `|` (pipe) not working as expected?
body: <p>I have a string that I want to split. But the separator is determined at runtime and so I need to pass it as a variable. </p>
  
  <p>Something like <code>my @fields = split(/$delimiter/,$string);</code> doesn't work. Any thoughts?</p>
  
  <hr>
  
  <p>Input: </p>
  
  <pre><code>abcd|efgh|23
  </code></pre>
  
  <p>Expected Output: </p>
  
  <pre><code>abcd
  efgh
  23
  </code></pre>