my @new = map { [ split(/\t/) ] } split(/\n/, $data);This way you end up with an array of arrays, one for each line in the file.
In reply to Re: using split on every element in an array
by tadman
in thread using split on every element in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |