Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 chanting in the Monastery: (7)
As of 2014-11-29 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls