in reply to Last Character into Array

If you really mean just the last non-newline character:

#! perl -slw use strict; my @array = map{ chomp; chop } <DATA>; __END__ xxxxxx: 0 yyyyyy: 6 zzzzzz: 5

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.