http://www.perlmonks.org?node_id=117030


in reply to How to send email when executing PERL on Windows NT

You have already been provided all of the answers that you need in order to get this done, so I am not adding anything there. This is more of a rant than anything.

<rant>
One of the greatest things about perl is how incredibly cross platform it is. It is so amazingly easy to just pick up a script from a *nix machine and move it to a Windows machine with hardly a change at all. Unless of course you don't use modules. That is where this problem comes from. If you had already been using the Net::SMTP module on the *nix side, you would not have had to make a change at all to this script.

I don't understand why people consistently choose to roll their own, especially when you make a call to an external program. Sure, maybe now you don't see a need for cross platform capabilities, but at some point in the future you will. If you consistently make use of whatever module is available (especially the "standard" ones) then you will not run into these "problems" in the future..
</rant>