If you simply want to turn undefined elements into an empty string, you could add a step to perform the conversion immediately after the split, like so:
@line_split = map { defined($_) ? $_ : '' } split (/\t/, $line);
...roboticus
In reply to Re: "Use of uninitialized value" due to empty elements in an array
by roboticus
in thread "Use of uninitialized value" due to empty elements in an array
by michaelp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |