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

Re: Re: What should be returned in scalar context?

by tilly (Archbishop)
on Dec 02, 2003 at 14:59 UTC ( [id://311633]=note: print w/replies, xml ) Need Help??


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

I used the second option for a while because I ran across some advocacy from someone who thought that it was nice to give people who wanted the option of a slight performance increase a chance to get it.

I have since then drifted away from using it, and the experience of extending the test suite for Text::xSV (which used that interface) has convinced me that it is a complete PITA to work with unless you only want one scalar value.

(Yeah, yeah. I know how to use appropriately placed parens to force list context. To me tricks like that exemplify what people dislike about Perl.)

  • Comment on Re: 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://311633]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-23 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found