use HTML::TreeBuilder;
use HTTP::Tiny;
-our $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ", default_headers => {Referer => "http://offliberty.com/"});
+our $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ", default_headers => {Referer => 'http://offliberty.com/'});
sub off{
my ($url, @params) = @_;
my $ret = $http->post_form(OFF_URL, {track => $url, @params});
- die $ret->{reason} unless $ret->{success};
+ die $ret->{reason} unless $ret->{success}; ## no critic (RequireCarping)
my $root = HTML::TreeBuilder->new_from_content($ret->{content});
map { $_->attr('href') } $root->look_down(qw/_tag a class download/);
}