in reply to
print last array element without a new line
Unless you're messing with $/ or $\, chomp will remove the newline, and there cannot possibly be two of them.
Your code does exactly what you say you want it to do.
chomp(my $record = $_);
my @field = split /\,/, $record;
There's an empty field, but that's because I didn't give $values a value. (In fact, I would get a warning with use warnings;.)