> 
> What you've written isn't valid Perl, so I shall have to guess at what
> you might mean. If you have two strings like this
> 
>    $val1 = '15/Apr/2005:11:46:35 +0300';
>    $val2 = '12/Nov/2007:14:59:00 +0530';
> 
> then you can compare them with eq, like this
> 
>    print "equal" if $val1 ne $val2;
> 
> but you say they are "too large". What do you mean by that please?
> 
> Rob


I thought we should compare only possible by splitting the $val1 and
$val2  in to date, month,year.. after that first compare the  year and
then month,date , finally compare the timings.. for that we need to
split first with ':' separator and then split with '/' separator ..
that's why i told it takes too large..

but you have solved my problem.. if suppose i will check both are less
than or greater than then the above solution is not suitable??


Thanks,
Siva

Reply via email to