2009/4/20 Chas. Owens <[email protected]>: > On Mon, Apr 20, 2009 at 12:26, Dermot <[email protected]> wrote: >> 2009/4/20 Chas. Owens <[email protected]>: >>> On Mon, Apr 20, 2009 at 11:21, Dermot <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
