Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Apparent Inconsistencies in Perl Function Naming

by Jonathan (Curate)
on Nov 24, 2000 at 17:57 UTC ( #43214=note: print w/ replies, xml ) Need Help??


in reply to Apparent Inconsistencies in Perl Function Naming

Guess I'm in the queue for a CAT scan princepawn. To my mind Larry has named functions well. To a degree it is a matter of opinion - perhaps even background. But I don't accept your arguments on the length function (which seems to have been inherited from awk anyway), 'length' does what it says on the tin and returns the length of a scalar value. While the 'scalar' operator forces scalar context - it is not a function to return the number of elements in a list. The same thing can be said for your second example you are looking at it from two sides - scalar and list

BTW do you never tire of playing the devil's advocate? ;-)

When I grow up I want to be a boy genius
My son Harry


Comment on Re: Apparent Inconsistencies in Perl Function Naming

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2015-07-04 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls