Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: My problems to understand the Perl documentation

by haukex (Bishop)
on Aug 24, 2020 at 08:44 UTC ( #11121026=note: print w/replies, xml ) Need Help??


in reply to Re^2: My problems to understand the Perl documentation
in thread My problems to understand the Perl documentation

Reading index-functions I get the impression that split is a function.

That list also includes things that are clearly not a function, like and, __END__, and m.

The function prototype returns the prototype of a function as a string (or undef if the function has no prototype). prototype "CORE::split" returns undef

You seem to be ignoring the part of that doc that says:

If FUNCTION is a string starting with CORE::, 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 system), prototype returns undef, because the builtin does not really behave like a Perl function.
As split behaves more like an operator it is perhaps better to call it an operator.

Please read carefully Terms and List Operators (Leftward):

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.

Several things in Perl only make sense when you read all of the documentation.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121026]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2022-05-26 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (93 votes). Check out past polls.

    Notices?