in reply to Template, sorting an array with only one member

Great DWIM bug. :)

More a TT question, but what happens if you always append an empty hash to the array?

Of course doing the sort logic in Perl should always fix this.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

  • Comment on Re: Template, sorting an array with only one member

Replies are listed 'Best First'.
Re^2: Template, sorting an array with only one member
by FloydATC (Deacon) on Oct 20, 2014 at 10:44 UTC
    More a TT question, but what happens if you always append an empty hash to the array?

    This would solve the Template problem but it would also require that I check for empty hashes in every single place that array is used. I want to keep the workaround within the template if at all possible.

    I'll see if I can find a way to do that.

    -- FloydATC

    Time flies when you don't know what you're doing