in reply to Tied Variables in the Template Toolkit

Replace your Tie::Cycle with a coderef. TT will do the right thing and call the coderef to get the "current" value.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Tied Variables in the Template Toolkit

Replies are listed 'Best First'.
Re: •Re: Tied Variables in the Template Toolkit
by rlb3 (Deacon) on Feb 24, 2004 at 04:08 UTC
    Merlyn,
    You are the MAN!!! Thanks so much..

    rlb3
Re^2: Tied Variables in the Template Toolkit
by Anonymous Monk on Aug 24, 2004 at 13:15 UTC
    What do you mean by coderef? Could you please give me an example or point me to some resources, googling didn't really help.
      coderef => reference to a subroutine. Also known as a subref.

      ------
      We are the carpenters and bricklayers of the Information Age.

      Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      I shouldn't have to say this, but any code, unless otherwise stated, is untested