There's more than one way to do things | |
PerlMonks |
Re: Re: May Thy Closures Be Blessedby hardburn (Abbot) |
on Apr 26, 2004 at 15:30 UTC ( [id://348208]=note: print w/replies, xml ) | Need Help?? |
Why did you make 'class' a member variable in $fields{'class'}? I belive my orginal reasoning had to do with an earlier version of the code that couldn't get access to $class. So my only excuse is hysterical reasons that I should have removed in the final post. . . . violating the sort of encapsulation you just proposed here. Nothing is absolute. I know it's possible to dig into someone else's lexical scope, but it's far more difficult than doing $obj->{foo}. Ultimately, I can't do anything to stop someone from tralling through /dev/mem or the equivilent on another system. ---- Note: All code is untested, unless otherwise stated
In Section
Meditations
|
|