Ooops... you're slipping. You need an extra anon-array constructor there:$chapters[1] = @lines[0 .. 55]; $chapters[2] = @lines[56 .. 112];
$chapters[1] = [@lines[0 .. 55]]; $chapters[2] = [@lines[56 .. 112]];
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: How do I split a file by lines into smaller files
by merlyn
in thread How do I split a file by lines into smaller files
by PatrioticDreamer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |