Write Perl subroutines in other programming languages