sivasakthi schreef: > I have the two variables, like below, > > $val1=[15/Apr/2005:11:46:35 +0300]; > $val2=[12/Nov/2007:14:59:00 +0530];
In stead of using such numbers in variable names, use an array. my @dates; $dates[0] = q[15/Apr/2005:11:46:35 +0300]; $dates[1] = q[12/Nov/2007:14:59:00 +0530]; > I want to check these two variables are equal or not.. I know the > method of splitting the each column and compare it.. but it too > large.. is it possible to check with easily?? Define 'equal'. Are these meant to be strings, or maybe DateTime values? (look for DateTime modules on CPAN) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/