in reply to Range Operator Mysteries
my @data; my $count = 0; while (<FOO>) { /^=+$/ and $count++, next; push @{$data[$count]}, $_; } [download]