Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: What should be returned in scalar context? (best practice)

by sauoq (Abbot)
on Dec 03, 2003 at 00:15 UTC ( #311792=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $nelts   = @array;    # Number of elements. 
    my ($first) = @array;    # First element. 
    ...
    my $nelts   = some_func();    # Number of elements.
    my ($first) = some_func();    # First element.
    my @whole   = some_func();    # Whole thing. 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://311792]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2016-12-11 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.