Re: [Templates] Lost in Templation

[prev] [thread] [next] [Date index for 2004/06/17]

From: Roderick A. Anderson
Subject: Re: [Templates] Lost in Templation
Date: 18:20 on 17 Jun 2004
On Wed, 16 Jun 2004, Mark Mills wrote:

> $sut->process($filename, $Size, \$msgbody) if (ref $Size eq "HASH");
> 
> And yes, after the pun in your Subject line you deserve a one line 
> suggestion in perlish... that is top-posted, even.

Guess I deserved it.  But it was too tempting to pass up.

I reviewed my message (which I created over a 45 minute plus time period
while doing additional testing and suffering several interruptions) and
see I typed the wrong stuff.  %Size is a "HASH" and in the TT book I've
seen it processed using $Size and \%Size.
   I knew I had done this before and when I re-discovered the code I see
the two main differences are; the working one is on a Win2K server and
the process call is in-line (small, simple script done quick-and-dirty)
whereas this one is on a Linux box and the process call is in a
subroutine.
   Taking your suggestion and looking at the error message again I see 
$Size is a SCALAR when I actually mis-thought it was reference to %Size -- 
automagically.  Whack goes the clue-stick.  Thanks.


Rod
        -- 
            "Open Source Software - You usually get more than you pay for..."
     "Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"



_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Lost in Templation
Roderick A. Anderson 01:15 on 17 Jun 2004

Re: [Templates] Lost in Templation
Mark Mills 01:51 on 17 Jun 2004

Re: [Templates] Lost in Templation
Roderick A. Anderson 18:20 on 17 Jun 2004

Re: [Templates] Lost in Templation
Roderick A. Anderson 20:23 on 17 Jun 2004

Re: [Templates] Lost in Templation
Jeff Anderson 01:44 on 18 Jun 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52