#!/usr/bin/perl use warnings; use strict; use feature qw{ say }; use LWP::UserAgent; my $url = 'http://wordpress.org/latest'; my $ua = 'LWP::UserAgent'->new; if (my $header = $ua->head($url)) { my ($version) = $header->header('Content-Disposition') =~ /(\d+\.\d+(?:\.\d+)?)/; say $version; } else { die "Can't retrieve the header from '$url'.\n"; } #### ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,