To run Perl interpreter, execute Perl program, invoke Perl function, and define Perl function in Haskell