in reply to curl without backticks and system()
#!/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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: curl without backticks and system()
by Anonymous Monk on Jan 31, 2017 at 10:22 UTC |