Thursday, May 19, 2005

Heredoc syntax in PHP is so cool! This morning I spent an hour trying to figure out why a certain script taken from a book would work nicely, but another wouldn't, even when they appeared exactly the same. Even when pushing a version that I somehow made work and my original through diff, I got this:
40c40
<       function addFooter()
---
>       function addFooter()
46c46
< EOD;
---
> EOD;
Isn't that awesome? Conclusion: tabs after EODs are bastards. Anyone know how I can get diff to show me hidden characters like '\t' as such?

No comments: