in reply to Uninitialized value in string eq error but I initialized
When $columns[$colN] is undefined, then trim returns undef which makes $NSC undefined causing the Uninitialized value in string eq error message.
To check this, right after spliting the columns just put in a check like:
... while ($line = <ALL>) { my @columns = split /,/, $line; warn "column $colN not found" unless defined($columns[$colN]); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Uninitialized value in string eq error but I initialized
by Anonymous Monk on Jan 05, 2008 at 22:54 UTC | |
by Anonymous Monk on Jan 05, 2008 at 23:11 UTC |