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

A vexing list vs. scalar context question.

by theguvnor (Chaplain)
on Jan 31, 2002 at 23:47 UTC ( [id://142547]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    return @{$self->{$slot}} if wantarray;
    return $self->{$slot};
    
  2. or download this
    #######################################################
    # generate the generic accessor methods using closures:
    ...
            return $self->{$slot};
        };
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://142547]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found