programming-examples/perl/_Basics/After pre-decrement.pl

8 lines
160 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
$a = 4;
$b = 10;
print "Our variables are ", $a, " and ", $b, "\n";
$a = --$b + 4;
print "Finally, we have ", $a, " and ", $b, "\n";