Why new lines are added after sort in perl when getting max and min GLIBCXX/GLIBC/CXXABI versions
When I used perl -0777nE'%h;$h{$1}.="n".$2while/(GLIBCX*|CX*ABI)_([0-9.]+)/g;say$ARGV;print"t$_t".qx{echo "$h{$_}"|sort -V|tail -1}for(keys%h)' /usr/lib64/lib{stdc++,c}.so*
to get max versions, it is OK.