Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by sauoq (Abbot)
on Dec 03, 2003 at 00:15 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://311792]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-24 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found