Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 studying the Monastery: (9)
As of 2014-09-18 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls