Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: What should be returned in scalar context?

by Abigail-II (Bishop)
on Dec 02, 2003 at 15:39 UTC ( [id://311647]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: What should be returned in scalar context?
in thread What should be returned in scalar context?

Besides which, I think that it is overkill to have to give an issue like this serious consideration with every function that I write. Having a default that just flows from my fingers would smooth out the development process.
It's not that for every function I write I contemplate what I am going to do in list context, and what I am going to do in scalar context. I just do whatever seems right at the time, and that's usually the right choice. But it's seldom consistent.

Abigail

  • Comment on Re: What should be returned in scalar context?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found