in reply to Re^2: Sorting an array containing version numbers
in thread Sorting an array containing version numbers

You just had to change print "$_\n" for to @versions =.