in reply to Help resolve Useless use of array element in void context warning.

It looks like the line is trying to concatenate the 4th and 5th elements of the line together separated by a comma, but the second dot operator has been typod as a comma.

$lengthandn=$line[4].',',$line[5]; # ^ should be .

That line would probably be better written as

$lengthandn = "$line[4],$line[5]";

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail