Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Variable Name Mistery. Who calls?

by ysth (Canon)
on Oct 26, 2006 at 00:01 UTC ( [id://580676]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Variable Name Mistery. Who calls?
in thread Variable Name Mistery. Who calls?

my $param = shift; ... $self->{$_call} = $_param || return $self->{$_call};
I assume $param and $_param were supposed to be the same. That's a little obfuscated, and doesn't allow setting parameters to false values. A more typical way to do it is:
# (after shifting everything but param) if (@_) { return $self->{$_call} = shift; } else { return $self->{$_call}; }

Log In?
Username:
Password:

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

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

    No recent polls found