I have a cgi script written in perl. I have a subroutine which prints out the results from my form data. Since I want the same results to appear when I send an email, how do I call the subroutine?
I tried print SENDMAIL &print_details;
But, this has no effect.
Any suggestions...