Created
November 23, 2011 07:31
-
-
Save leedo/1388110 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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