programming-examples/perl/Datatype/Compare two values in the integer context.pl

7 lines
80 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
use integer;
$s1 = 11;
$s2 = 11.2;
print "\$s1 = \$s2" if ($s1 == $s2);