| 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 | ||