programming-examples/perl/_Basics/Compound operator.pl
2019-11-15 12:59:38 +01:00

13 lines
213 B
Perl

#!/usr/bin/perl -w
$a = 6 * 9;
print "Six nines are ", $a, "\n";
$a += 3;
print "Plus three is ", $a, "\n";
$a /= 3;
print "All over three is ", $a, "\n";
$a += 1;
print "Add one is ", $a, "\n";