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

$chapters[1] = @lines[0 .. 55]; $chapters[2] = @lines[56 .. 112];
Ooops... you're slipping. You need an extra anon-array constructor there:
$chapters[1] = [@lines[0 .. 55]]; $chapters[2] = [@lines[56 .. 112]];

-- Randal L. Schwartz, Perl hacker