programming-examples/perl/Basics/Compound operator.pl

13 lines
213 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
#!/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";