Not sure if this is exactly what you're looking for, but you could try something like this: my @new = map { split /\t/ } split /\n/, $data; Another way to do it is to split on either character: my @new = split /\n|\t/, $data;One of these will probably do what you want.
Note, I haven't tested either one.
In reply to Re: using split on every element in an array
by VSarkiss
in thread using split on every element in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |