in reply to Re^2: Short version of database push for multiple variables
in thread Short version of database push for multiple variables
I presume it was supposed to be //'NA'/.
No. What I posted was tested, working code. The defined-or operator is: //. Ie. The full line with a couple of extra spaces is:
my @a = map $_ // 'NA', split /\t/, $line;
The extra / you are adding is the cause of your divide by zero message.
|
|---|