note
duff
<p>I'd put more emphasis on the fact that the first argument to split is always, always, <b>always</b> a regular expression (except for the one special case where it isn't :-). Too often do I see people write code like this:
<code>
@stuff = split "|", $string; # or worse ...
$delim = "|";
@stuff = split $delim, $string;
</code>
And expect it to split on the pipe symbol because they have fooled themselves into thinking that the first argument is somehow interpreted as a string rather than a regular expression.
<div class="pmsig"><div class="pmsig-5403">
<p>[duff]
</div></div>
591988
591988