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]>\";
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 -
<<"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
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
On May 24, Frank said:
print OUTPUT "@items\n";
When you place an array inside quotes, it's the same as saying
join($", @array)
where $" is the "list separator" variable, whose default value is " " (a
single space).
Thus, if @array is ("this", "that", "those"), then "@array" is "this th
I met an interesting problem recently and am expecting your kind advice.
my input file (for_test) is like as follows. I wish add a ">" to the
first line (before the word blue) and remove ">" at the last line.
# ---begining of the file, this line is not included in the file---#
blue
sky
ski