Re: Question about print

2008-07-07 Thread Gunnar Hjalmarsson
David Romero wrote: <<"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]>\";

Re: Question about print

2008-07-07 Thread Gunnar Hjalmarsson
loody wrote: Dear all: below is what I excerpt form "perl cook book". What does <<"EOF" mean at the end of print? It has nothing to do with the print() function. It's the beginning of a "here document". http://perldoc.perl.org/perlop.html#%3c%3cEOF open(SENDMAIL, "|/usr/sbin/sendmail -oi -

Re: Question about print

2008-07-07 Thread David Romero
<<"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 Mo