Where is Perl/Sendmail/Date located?

Perl is located in /usr/bin/.
So your script should have #!/usr/bin/perl at the top of the file.

Sendmail is located in /usr/sbin/.
So your script should point to /usr/sbin/sendmail.

Date is located in /bin.
So your script should point to /bin/date.