Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2016-06-26 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (330 votes). Check out past polls.