Conversion of PERL code to MyriaL