Thread while + STDIN
(7 answers)
Opened by RPerl at 2007-06-16 11:31 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 #!/usr/bin/perl use strict; use warnings; my ($string) = ''; while (1) { $string = <STDIN>; chomp($string); last if ($string eq 'exit'); } <!--EDIT|GwenDragon|1181986396--> |