Something it really took me a long time to learn!
It's applicable to existing code too, where you might want to alter the output of something that's already scripted, something I've been trying to do on this page for some time.
Related Articles
Good info. Worth a share.