moonbeam at catmanor.com
Sun Mar 12 13:26:48 CST 2000
>I've created the following script to process form input after it's being
>filled out. I've writen it for a UNIX-based server.
>I want to make it work on an NT environ as well. What changes should I make
>on the script for it to be able to work on Windows NT server?
One especially common bit of Perl code is opening a pipe
open(MAIL, '|/usr/lib/sendmail -t') or die $!;
This is fine for systems programming when sendmail is
known to be available. But it is not fine for many non-
Unix systems, and even some Unix systems that may not have
sendmail installed. If a portable solution is needed, see
the Mail::Send and Mail::Mailer modules in the MailTools
distribution. Mail::Mailer provides several mailing
methods, including mail, sendmail, and direct SMTP (via
Net::SMTP) if a mail transfer agent is not available.
The rule of thumb for portable code is: Do it all in
portable Perl, or use a module (that may internally
implement it with platform-specific code, but expose a
William Julien _,'| _.-''``-...___..--';
moonbeam at catmanor.com /, \'. _..-' , ,--...--'''
vi is my shepherd; < \ .`--''' ` /|
i shall not font. `-,;' ; ; ;
__...--'' __...--_..' .;.'
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
Email to majordomo at pm.org: ACTION spug-list your_address
More information about the spug-list