1 2 3 4 5 6
use Mojo::Base -strict; use Mojo::UserAgent; my $ua = Mojo::UserAgent->new->max_redirects(5); say $ua->get('www.perl.org')->res->dom->at('title')->text;
You can clone a snippet to your computer for local editing. Learn more.