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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?