Hmmm..... Even I am a beginer but let me throw some pointers. Experienced users kindly correct me if I am wrong....
First line is declaring a constant. What I could not get is that what constant are we trying to declare i.e a variable, hash or a reference. Read more - perldoc constant And then there is a function which perhaps is returning a reference to something. Sorry for this vague kind of answer but even I am in process of learning Perl. :) Cheers, Parag On Sun, Nov 15, 2009 at 10:10 AM, Ming Qian <childpsych.colum...@gmail.com>wrote: > Hello, > > I encounter some code as follows, and can not understand. Would someone > help > me? > > use constant 'cache_result' => {}; > > sub abc { > ............ > ........... > return cache_result->{$self->name}; > > } > > What does this mean? > > Best, > Bruce >