Below code is not working but I don't know why.
my $q = (1, 2) eqv (1, 3);
print "$q \n";
I'm using Perl v5.14. And also what is the difference between "eqv" and "==" ?
Below code is not working but I don't know why.
my $q = (1, 2) eqv (1, 3);
print "$q \n";
I'm using Perl v5.14. And also what is the difference between "eqv" and "==" ?
There is no operator like eqv
in Perl5. I think you are looking for eq
operator.
To see the difference between eq
and ==
operator, see this:
perl string compare with “eq” vs “==”
Read this for more information:
What's the deal with all the different Perl 6 equality operators