On Thu, Feb 4, 2010 at 10:57 AM, Jay Hannah <span dir="ltr"><<a href="mailto:jay@jays.net">jay@jays.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Feb 4, 2010, at 9:58 AM, Todd Christopher Hamilton wrote:<br>
</div><div class="im">> I was wondering something though. Which one would you do?:<br>
<br></div></blockquote><div><br></div><div>I don't like heredocs. That's mostly simple prejudice. I just don't like them. However, when I rarely use them, </div><div><br></div><div>1) I always specify the quoting. That is, always <<"EOF" or <<'EOF' rather than <<EOF. It makes what I'm doing more explicit.</div>
<div><br></div><div>2) I never use a generic short "EOF" that's too likely to appear somewhere in any given text. Instead, I use something like "END_OF_BAR_SQL"</div><div><br></div><div>In general, though. I almost always use multi-line q[] or qq[] or q() or qq() or q{} or qq{} etc.</div>
<div><br></div></div>-- <br>Andrew Sterling Hanenkamp<br><a href="mailto:sterling@hanenkamp.com">sterling@hanenkamp.com</a><br>785.370.4454<br>