Skip to content

Instantly share code, notes, and snippets.

@leedo
Created November 23, 2011 07:31
Show Gist options
  • Save leedo/1388110 to your computer and use it in GitHub Desktop.
Save leedo/1388110 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
package Bang;
sub new { bless {}, __PACKAGE__ }
package main;
use AnyEvent;
BEGIN {
require AnyEvent::IRC::Client;
*AnyEvent::IRC::Client::DESTROY = sub { warn "bai from AE::IRC" };
*Bang::DESTROY = sub { warn "bai from Bang" };
}
my $cl = AnyEvent::IRC::Client->new;
undef $cl;
my $b = Bang->new;
undef $b;
AE::cv->recv;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment