hmerrill: I was under the impression that if you had very large scalar (e.g. $template contains a 100kb template) it was more efficient to pass a reference than to pass the whole scalar, since no memory is being copied. Or am I confused on this point?