that last char is not a newline.  we should probably be using perl -pe "chomp"