sivasakthi 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??

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

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


Reply via email to