- or download this
print << "ENDTAG"; # works
print << 'ENDTAG'; # works
print << ENDTAG; # syntax error!
- or download this
print "printing here doc:\n";
print <<"ENDTAG";
...
printing here doc:
This text has 0 leading spaces
This text has 4 leading spaces
- or download this
{
print "printing here doc:\n";
...
This text has 4 leading spaces
ENDTAG
}
- or download this
{
print "printing here doc:\n";
...
OUTPUT:
printing here doc:
This text has 4 leading spaces