10 lines
148 B
Perl
10 lines
148 B
Perl
|
#!/usr/bin/perl
|
||
|
use warnings;
|
||
|
use strict;
|
||
|
|
||
|
my $start = 2;
|
||
|
my $end = 4;
|
||
|
|
||
|
while (<>) {
|
||
|
($. == $start)..($. == $end) and print "$.: $_";
|
||
|
}
|