in reply to "Use of uninitialized value" due to empty elements in an array
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 Section
Seekers of Perl Wisdom