Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: OO Perl: calling a constructor within a classby TheDamian (Vicar) |
on Sep 28, 2001 at 11:06 UTC ( [id://115329]=note: print w/replies, xml ) | Need Help?? |
Careful with that ||=, Eugene!
Did you really want to prohibit a cereal number of zero?
That's why I generally avoid using ||= to specify defaults. Besides, there are ways to tell if she is a witch: or: or the strange-but-lovely: or the tried and true:
Err... Oh, yes, I should also mention that next week, when Apocalypse III and Exegesis III appear, you'll find that Perl 6 is going to have a much nicer way to solve this problem. Damian
In Section
Seekers of Perl Wisdom
|
|