On Dec 23, 2004, at 12:42 PM, Sean T Allen wrote:

Well that isnt a string per-se,
its a date...

pirint "good\n" if ( '2004-11-23' < '2004-11-26' );

doesnt print good either...


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. I don't know if TT has the necessary magic to compare as string instead of as numeric in the underlying perl code.




_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to