programming-examples/perl/Statement/Use while loop to read console input.pl

8 lines
71 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
while ($_ = <>) {
print $_;
}
while (<>) {
print;
}