in reply to Short version of database push for multiple variables
Kinda depends what mean by "blank"?
If the file contains two successive tabs with nothing in between, the result of split will undef, and you can use defined-or:
my @a = map $_//'NA', split /\t/, $line;
If there might be spaces, or empty quotes between the tabs, you need to use else.
|
|---|