use feature ":5.10"; my $x=10; my $y="10.00"; say "matches" if ($x ~~ $y);