Roman Makurin <dro...@gmail.com> asked: > I need create a friend class. Is there any special that I > need to know ? For now, I get object and work with it like > with ordinary reference with direct access to internal > fields.
Perl OO doesn't have a notion of friend classes since there is no data hiding anyways, so you're not Doing It Wrong per se. One word of advice, though: If you're doing this you should probably check the befriended module's version in your code and warn() that there might be a problem if its version is different from what you used to test your code with. HTH, Thomas -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/