in reply to Re^2: extract ouput that counts strings starting with A in the dataset
in thread extract ouput that counts strings starting with A in the dataset

The last character is
substr $line, -1
If you do not chomp your input, though, this might return end-of-line.