note demerphq <p> IMO people that obsess over data hiding in perl have missed the point of perl and should probably be using a different language entirely. </p> <p> All code is visible in perl. If I encountered your code I'd rip the closure crap out, convert it to a standard hash based object and use Perls strengths (code analysis and data introspection) to deal with the very minimal level of problems that come from Perl's relatively weak data hiding facilities. </p> <p> Data hiding makes sense when you can not see or inspect the code that you are interoperating with, and is particularly important when the language lacks decent data introspection tools. However Perl does not satisfy either of these points, you ALWAYS have access to the code, and you ALWAYS have access to data introspection tools. Thus hiding data is actually counterproductive, as it means that the standard debugging techniques are useless. This in turn means that your data hiding code is a liability, not an advantage. </p> <div class="pmsig"><div class="pmsig-108447"> ---<br /> $world=~s/war/peace/g<br /> <br /> </div></div> 770977 770977