![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: A (kinda) Circular Cacheby arturo (Vicar) |
on Mar 23, 2001 at 22:45 UTC ( #66695=note: print w/replies, xml ) | Need Help?? |
I like it! Meaningless 'optimization'/alternate style: I like to do my defaults right when I declare the variables; not that it matters much here, but just as a 'grace note':
Also,
in your get method will return undef if $data is not defined (at least, if the sub's been called in a scalar context, which it will be, right?), so you could probably just get rid of that first line. well, I guess it saves a few keystrokes too ... heh. Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In Section
Code Catacombs
|
|