The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!perl
use lib '../lib';
use AnyEvent::BitTorrent;
use Net::BitTorrent::Protocol qw[:all];
$|++;

#
my $client = AnyEvent::BitTorrent->new(
                                  path         => 'a/legal.torrent',
                                  on_hash_pass => sub { warn 'PASS: ' . pop },
                                  on_hash_fail => sub { warn 'FAIL: ' . pop }
);
$client->hashcheck();
AE::cv->recv;