mixin up Perl and Objective-C