in reply to OO style question: how much information to hide?
I much prefer the explicit version.
I would be inclined to code it like that even if the module didn't require me to do so. If nothing else, it would avoid useless method calls.
I don't think it would bother me if the module didn't enforce that though. It seems to be in the spirit of giving enough rope... and I might be glad of it when needing a quickie throwaway script or a one-liner.
-sauoq "My two cents aren't worth a dime.";
|
---|
In Section
Seekers of Perl Wisdom