Write Perl subroutines and classes in C++
