A here-document starts on the line after the two arrows.
#A here-document ends when the text following the arrows is found at the beginning of a line, like this.
#!/usr/bin/perl -w
print <<EOF;
#A here-document starts on the line after the two arrows.
#A here-document ends when the text following the arrows is found at the beginning of a line, like this.