http://www.perlmonks.org?node_id=321743


in reply to here-document without interpolation (<<DELIMITER;)

Heredocs allow you to use a single blank line as your end delimeter if you wish. This means that rather than writing

print <<"Done"; foo bar baz Done print "aha!\n";

, you can write

print <<""; foo bar baz print "aha!\n";

(note the lack of anything but a blank line between "baz" and the following print statement). It was previously allowed to use

print <<; foo bar baz print "aha!\n";

(note the plain and simple "print <<;" line). You can still use that simple version, but it's best not to as there is no guarantee that such functionality will be reserved in future perl versions (and that is why the warnings pragma will cough up that deprecated message if you use "print <<;").