#!/usr/bin/perl -w use strict; # # script to remove the first eight lines after lines of a page 56 # lines long. # my($line) = ""; my($counter) = 0; my ($boolean) = 0; # print every nth line of STDIN, where n is defined as: my($countTo) = 56; my($secondCounter) = 8; while ($line = ) { $counter += 1; if($counter > $secondCounter) { print $line; } if($counter == $countTo) { $counter = 0; } }