<<"EOF"; is the begging of a string EOF is the end of a string.
This is used to create a multi line string. with out this is much more work print SENDMAIL "From: Tom Christiansen <[EMAIL PROTECTED]>\n"; print SENDMAIL "To: Nathan Torkington <[EMAIL PROTECTED]>\"; uff..... ...... On Mon, Jul 7, 2008 at 10:29 AM, loody <[EMAIL PROTECTED]> wrote: > Dear all: > below is what I excerpt form "perl cook book". > What does <<"EOF" mean at the end of print? > thanks for your help, > miloody > > open(SENDMAIL, "|/usr/sbin/sendmail -oi -t -odq") > or die "Can't fork for sendmail: $!\n"; > print SENDMAIL <<"EOF"; > From: Tom Christiansen <[EMAIL PROTECTED]> > To: Nathan Torkington <[EMAIL PROTECTED]> > Subject: Re: The Perl Cookbook > (1) We will never finish the book. > (2) No man who uses EMACS is deserving of love. > (3) I recommend coq au vi. > tom > EOF > close(SENDMAIL); > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > > -- David Romero www.factufacil.com.mx