programming-examples/perl/Statement/Mixed diamond operator with for loop condition.pl
2019-11-15 12:59:38 +01:00

3 lines
90 B
Perl

for (print "Type q to quit.\n"; <> ne "q\n"; print
"Don't you want to quit?\n") {}