Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: My problems to understand the Perl documentation

by haukex (Archbishop)
on Aug 24, 2020 at 08:44 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-23 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found