in reply to Re: How do I split a file by lines into smaller files
in thread How do I split a file by lines into smaller files

Seems pretty straightforward:
open (INFILE,$filename) or die "a slow, suffocating death: $!"; $segment=1; ENDLESS: while (1) { open (OUTFILE,">".$filename.$segment.$extension); foreach (1..56) { $line=<INFILE> or end ENDLESS; print OUTFILE $line; } close OUTFILE; $segment++; }
The variable names should be pretty self-explanatory. Hope that helps, Brother Ade