Re[2]: [Templates] Can't comparing strings (strings are treated as numbers)

[prev] [thread] [next] [Date index for 2004/12/23]

From: Oleg Burlaca
Subject: Re[2]: [Templates] Can't comparing strings (strings are treated as numbers)
Date: 19:14 on 23 Dec 2004
> Vivek Khera
>Yes, but print "good\n" if ( "2004-11-23" lt "2004-11-26" ); does what you expect.
> you can't use a numeric compare in perl for strings.
of course I knew that :), but in TT there is no 'lt' :(

> Sean T Allen
>Well that isnt a string per-se, its a date...
But first of all, it's a string :)
Why imposing a lot of overhead by using Date::Calc ?

What I want to know is: How to compare two strings in TT ?





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

Re[2]: [Templates] Can't comparing strings (strings are treated as numbers)
Oleg Burlaca 19:14 on 23 Dec 2004

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