Created
January 6, 2014 23:10
-
-
Save wolfsage/8291610 to your computer and use it in GitHub Desktop.
My attempt at producing dubstep
This file contains 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
mhorsfall@Fireforge:~$ cat wobble.pm | |
package wobble; | |
use strict; | |
use warnings; | |
sub import { | |
my ($self, $into) = @_; | |
my $method = "$into\::drop"; | |
no strict 'refs'; | |
*$method = sub { print "Wub wub wub\n"; } | |
} | |
1; | |
__END__ | |
mhorsfall@Fireforge:~$ perl -e 'use wobble base; base->drop' | |
Wub wub wub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment