2009/4/20 Chas. Owens <chas.ow...@gmail.com>:
> On Mon, Apr 20, 2009 at 12:26, Dermot <paik...@googlemail.com> wrote:
>> 2009/4/20 Chas. Owens <chas.ow...@gmail.com>:
>>> On Mon, Apr 20, 2009 at 11:21, Dermot <paik...@googlemail.com> wrote:
>> ...
> snip
>
> I would avoid the do {...} and just muck with %defaults directly (as I
> did in the example).

Will do. (no pun intended but enjoying the side effects).

> snip
>>> You might also want to look into the Singleton pattern[1].
>>>
>>> 1. http://en.wikipedia.org/wiki/Singleton_pattern
>>
>>
>> Design patterns. I have come across this term a few times but there is
>> very little Perl examples of Design Patterns around and not a single
>> example of Singleton pattern on that page :-(
> snip
>
> Here you go:
>
> http://perldesignpatterns.com/?PerlDesignPatterns
> http://perldesignpatterns.com/?SingletonPattern

Pure gold.  Excellent.
Thanx,
Dp.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to