dagon wrote:I see no reason to be using the 'here document' syntax anyway
In that code snippet? Of course not. Although, we must consider that the code snippet provided was probably an on-the-fly example of what he was trying.
Besides, never hurts to learn how to do something, even if you decide it wasn't necessary! :p
I'm sure you found this, but the manual page for a [man]string[/man] explains all about heredoc syntax.