AnyEvent-Atom-Stream
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
my $stack_frame = 0;
my $dump = 'yaml';
my $bases_map = {};
sub WWW; sub XXX; sub YYY; sub ZZZ;
# This line is here to convince "autouse" into believing we are autousable.
sub can {
($_[1] eq 'import' and caller()->isa('autouse'))
? \&Exporter::import # pacify autouse's equality test
: $_[0]->SUPER::can($_[1]) # normal case
}
# TODO
#
# Exported functions like field and super should be hidden so as not to
# be confused with methods that can be inherited.
#
sub new {
my $class = shift;
lib/AnyEvent/Atom/Stream.pm view on Meta::CPAN
use strict;
use 5.008_001;
our $VERSION = '0.02';
use base qw( XML::Atom::Stream );
use AnyEvent::Atom::Stream::UserAgent;
sub connect {
my($self, $url) = @_;
$self->{ua} = AnyEvent::Atom::Stream::UserAgent->new($self->{timeout}, $self->{on_disconnect});
$self->SUPER::connect($url);
defined wantarray && AnyEvent::Util::guard { delete $self->{ua} };
}
1;
__END__
=encoding utf-8
=for stopwords
( run in 1.011 second using v1.01-cache-2.11-cpan-49f99fa48dc )