+# Get blead and all other perls
+my @perls = $opt{blead};
+for my $dir (split ",", $opt{install}) {
+ push @perls, grep !/-RC\d+/, glob "$dir/bin/perl5.*";
+}
+
+# Sort in descending version order. Each element is a hash describing a perl,
+# with keys 'version' and 'path'
+@perls = sort { $b->{version} <=> $a->{version} }
+
+ # Call the perl to get it to print out it's $]
+ # version
+ map { { version => `$_ -e 'printf "%.6f", \$]'`,
+ path => $_ }
+ }
+ @perls;
+
+# Override blead's version if specified.