programming-examples/perl/Basics/The autoincrement operator.pl
2019-11-18 14:44:36 +01:00

10 lines
186 B
Perl

#!/usr/bin/perl
use warnings;
$a = "A9"; print ++$a, "\n";
$a = "bc"; print ++$a, "\n";
$a = "Zc"; print ++$a, "\n";
$a = "z9"; print ++$a, "\n";
$a = "9z"; print ++$a, "\n";