ok, i just fixed it, but i'd like to still figure out why it worked then stopped.  there must be something wrong with the earlier logic.  for reference, here's what i did:<br><br>i replaced:<br><font size="1"><span style="font-family:courier new,monospace">1999             #####open(FH, "$base/helping$full.html") || die "\n\nCould not READ $base/helping$full.html: [$!]\n\n";</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">2000             #####$tpl->param("m$full" => do { local $/; while (<FH>) { my $next = <FH>; } });</span></font><br><br>with:<br><font size="1"><span style="font-family:courier new,monospace">2001</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">2002             my $contents;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">2003             {</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">2004                 local $/;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">2005                 open(FH, "$base/helping$full.html") || die "\n\nCould not READ $base/helping$full.html: [$!]\n\n";</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">2006                 $contents = <FH>;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">2007                 close(FH);</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">2008             }</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">2009             $tpl->param("m$full" => $contents);</span></font><br>
<br>Can you see immediately why the first one would be no good? It almost seems like the tpl->param is not being set as a string.  That is, clearly it reads it, but it is not assigning the result properly as a string.  All I got were undefs in the log for the earlier logic.  I am 199% sure this worked using the earlier logic yesterday.<br>
<br>Thanks!<br>/bda<br><br><br><br><div class="gmail_quote">On Wed, May 16, 2012 at 1:00 PM, Bradley Andersen <span dir="ltr"><<a href="mailto:bradley.d.andersen@gmail.com" target="_blank">bradley.d.andersen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ok, just did that.<br><br>it is CLEARLY reading the entire file set in ;)<div class="HOEnZb"><div class="h5"><br><br><br>
<br><div class="gmail_quote">On Wed, May 16, 2012 at 12:58 PM, Bradley Andersen <span dir="ltr"><<a href="mailto:bradley.d.andersen@gmail.com" target="_blank">bradley.d.andersen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I guess next step is to issue prints in the while and watch what happens as I load the page.  But man, that's gonna be a lot of output :)<div>

<div><br><br><br><br><div class="gmail_quote">On Wed, May 16, 2012 at 12:57 PM, Bradley Andersen <span dir="ltr"><<a href="mailto:bradley.d.andersen@gmail.com" target="_blank">bradley.d.andersen@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had this in there earlier, sorry:<br><font size="1"><span style="font-family:courier new,monospace">open(FH, "$base/helping$full.html") || die "\n\nCould not READ $base/helping$full.html: [$!]\n\n";</span></font><br>



<br>it prints nothing :(<br><br>so i think it _is_ reading the files, but it is not reading them into the tpl->params somehow?<div><div><br><br><br><br><br><div class="gmail_quote">On Wed, May 16, 2012 at 12:48 PM, Mark Senn <span dir="ltr"><<a href="mailto:mark@ecn.purdue.edu" target="_blank">mark@ecn.purdue.edu</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">  > open(FH, "$base/m10.html");<br>
<br>
I'd debug this by starting with checking that the file<br>
got opened successfully:<br>
<br>
    my $fn = "$base/m10.html";<br>
    open FH, '<', $fn  or  die qq/Can't open "$fn" for input: $!.\nStopped/;<br>
<br>
-mark<br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>