File: method.pl

package info (click to toggle)
perlimports 0.000058-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,240 kB
  • sloc: perl: 5,949; sh: 5; makefile: 4
file content (12 lines) | stat: -rwxr-xr-x 194 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl

use strict;
use warnings;

use HTTP::Status;
use LWP::UserAgent;

my $ua = LWP::UserAgent->new;
my $res = $ua->get('https://metacpan.org');

print 'ok' if $res->is_success;