the simplest way:

if ( $val1 eq $val2 ) {
    do something...
} else {
    do another thing...
}

but, since this is a datetime string, for better control, you may want
to take the way of comparing them with time. see some modules like
Time::Local.

On Nov 17, 2007 12:36 PM, sivasakthi <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have the two variables, like below,
>
> $val1=[15/Apr/2005:11:46:35 +0300];
> $val2=[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??
>
>
> Thanks,
> Siva
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to