blib/lib/auto/share/dist/Poet/generate.skel/bin/get.pl untested

filter: Statementstmt 0.0% 0 / 18 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!<% Poet::Tools::perl_executable %>
2 use Poet::Script qw($poet);
3 use Poet::Mechanize;
4 use warnings;
5 use strict;
6  
7 my $url = shift(@ARGV) or die "usage: $0 url";
8 my $mech = Poet::Mechanize->new();
9 $mech->get($url);
10 if ( $mech->success ) {
11 print $mech->content;
12 }
13 else {
14 printf( "error getting '%s': %d\n%s",
15 $url, $mech->status, $mech->content ? $mech->content . "\n" : '' );
16 }
17  
18 __END__