perl -MLWP::Simple -le 'get("https://www.perl.org/get.html") =~ /latest stable version, currently ([\d\.]+)\./ and print $1' 5.24.1