programming-examples/perl/Basics/A program that uses the pre-increment operation..pl

8 lines
134 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
#!/usr/local/bin/perl
$value = 0;
while (++$value <= 5) {
print("value is now $value\n");
}
print("all done\n");