Ubuntu を使っていて、インストールができない場合は https://qiita.com/tsig/items/cbfb7918c8d4bc56fb87 の記事を参考にするといいでしょう! html を取ってくる💪 まずは html を取ってくるようなコードを書いてみましょう。 #!/usr/bin/env perl use strict; use warnings; use utf8; use feature qw/say/; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $response = $ua->get('http://example.com/'); die $response->status_line if !$response->is_success; say $response->decoded_conte
![Perl の LWP::UserAgent を使って遊ぼう! - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/b160ce1f1632155b564d6a1ff21217bc1065ba90/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Fadvent-calendar-ogp-background-f625e957b80c4bd8dd47b724be996090.jpg%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9UGVybCUyMCVFMyU4MSVBRSUyMExXUCUzQSUzQVVzZXJBZ2VudCUyMCVFMyU4MiU5MiVFNCVCRCVCRiVFMyU4MSVBMyVFMyU4MSVBNiVFOSU4MSU4QSVFMyU4MSVCQyVFMyU4MSU4NiVFRiVCQyU4MSZ0eHQtY29sb3I9JTIzM0EzQzNDJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTU2JnR4dC1jbGlwPWVsbGlwc2lzJnR4dC1hbGlnbj1sZWZ0JTJDbWlkZGxlJnM9ODZiNWNjYjJmMGU2ZGI1ZTIzNGZmODI4MmUzYjMzOTY%26mark-x%3D142%26mark-y%3D151%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwY29kZWhleCZ0eHQtY29sb3I9JTIzM0EzQzNDJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTM2JnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnM9YzRmYzdhNDc3NzViYjU5ZDExN2U2MjYxYmE0ZGQ0ZjE%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3D46206e9e817414f0772b4eec32edb429)