http://www.perlmonks.org?node_id=11129462


in reply to Adding empty value in an Array!

Although the style is poor, your code can be fixed with minor changes. If by 'empty values' you mean 'empty strings', remove the line next.... If you mean 'undefined', you must also change
#if ( $cellO eq "" ) { if (!defined $cellO) {
Bill