in reply to OOP: Printing in EOF block

N.B.: The construct you are inquiring about is not an "EOF block", but a Here document.