FreeProxy/Look.pm

filter: Statementstmt 50.0% 4 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 54.5% 6 / 11 CC 3 SCAR 22.2
CC
3
Cov
50%
fetch
12.0
BEGIN
1.0
CRAP 9.2
« FreeProxy/PublicProxyServers.pm ↑ Summary FreeProxy.pm »
1 package WWW::FreeProxy::Look;
2  
3 1 ▶use LWP::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 FUNCTIONS
6  
7 =head2 fetch
8  
9 Fetches proxy list
10  
11 =cut
12  
13 0 ▶sub fetch {
Subroutine fetch: not called CC=3 SCAR=24.8
Pod documented
14 0 my ($self, $callback) = @_;
15 0 my @lines = split /\n/, get('http://www.loo-k.info/plist.txt');
16 0 shift @lines for 1..2;
17 0 &$callback($_) for @lines;
18 }
19  
20 1 1;
21  
22 =head1 COPYRIGHT & LICENSE
23  
24 Copyright 2008 Alexey Alexandrov, all rights reserved.
25  
26 This program is free software; you can redistribute it and/or modify it
27 under the same terms as Perl itself.
28  
29 =cut
« FreeProxy/PublicProxyServers.pm ↑ Summary FreeProxy.pm »