Added function to test perl and use properties.env$perl.cmd