Thanks very much for your helpful reply!
I tried the native bourne shell and it worked.
I did try the 2nd option for interests sake and although it didn't output an error it also didn't run my php script on the email. Could you shed any light on why the STDIN is not routed to the php when executed from perl?