in reply to Re: Re: split and sysread()in thread split and sysread()
my $r = join "[|]" => ("([^|]*)") x 31; while (/^$r\n/mg) { ... } [download]
This (untested) code sets $1 through $31.
Abigail