I want to send the output of a Perl file in the body of the mail. Can some one let me know how I can capture the output of the Perl which prints something on the cmd to a variable?
I am running a Perl script from a command prompt and I get the output on the command prompt itself. I want to print the output on the command prompt to the body of an email. I have the function which can send the email but don't know how to capture that output. I hope its bit clear now.