I want to send output of a pell file in the mail body. Can anyone tell me how can I capture the production of Pearl which prints something in a variable on CMD?
I am running a Perl script from a command prompt and I get the output on the command myself immediately I want to print the output to an email body at the command prompt. I have a function that can send emails but I do not know how to capture that output. I hope this is a bit obvious.
If you are sending emails from a Perl script and want to include the body of another Perl script , Please:
use the IPC :: System :: Simple 'Captain'; My $ body = Captains ('Perl', '/ path / to / your / script');
Comments
Post a Comment