PetaMem has asked for the wisdom of the Perl Monks concerning the following question:
inspecting the Cache::Memcached source, I stumbled across the following:
sub stats_reset { my Cache::Memcached $self = shift;
Now the "Cache::Memcached" after the "my" keyword is what puzzles me. The camel book doesn't mention anything like that in the description of my, and so I'm completely missing the semantics of it. What is it? Some kind of data type specification?
Bye
PetaMem All Perl: MT, NLP, NLU
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Weird my Syntax
by Joost (Canon) on Aug 01, 2005 at 12:44 UTC | |
|
Re: Weird my Syntax
by derby (Abbot) on Aug 01, 2005 at 12:50 UTC | |
|
Re: Weird my Syntax
by castaway (Parson) on Aug 02, 2005 at 08:17 UTC |