Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Anonymous Monk
on Dec 02, 2003 at 14:56 UTC ( [id://311632]=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?

The reference still behaves nicely in boolean context, but it contains all the information of the original array.
What if the array is empty, how is the reference useful then in boolean context (or do you return undef in that case)?
  • 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://311632]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found