programming-examples/perl/Basics/Using auto-increment operator for a string.pl

6 lines
84 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
#!/usr/bin/perl -w
$a = "bz"; print ++$a, "\n";
$a = "Zz"; print ++$a, "\n";