note
haukex
<blockquote><i>Reading index-functions I get the impression that split is a function.</i></blockquote>
<p>That list also includes things that are clearly not a function, like <c>and</c>, <c>__END__</c>, and <c>m</c>.</p>
<blockquote><i>The function [doc://prototype] returns the prototype of a function as a string (or undef if the function has no prototype). prototype "CORE::split" returns undef</i></blockquote>
<p>You seem to be ignoring the part of that doc that says:</p>
<blockquote>If FUNCTION is a string starting with <c>CORE::</c>, the rest is taken as a name for a Perl builtin. If the builtin's arguments cannot be adequately expressed by a prototype (such as [doc://system]), [doc://prototype] returns [doc://undef], because the builtin does not really behave like a Perl function.</blockquote>
<blockquote><i>As split behaves more like an operator it is perhaps better to call it an operator.</i></blockquote>
<p>Please read carefully [doc://perlop#Terms-and-List-Operators-(Leftward)]:</p>
<blockquote>Actually, there aren't really functions in this sense, just list operators and unary operators behaving as functions because you put parentheses around the arguments.</blockquote>
<p>Several things in Perl only make sense when you read <i>all</i> of the documentation.</p>
11120998
11121011