Skip to content

Instantly share code, notes, and snippets.

@wolfsage
Created January 6, 2014 23:10
Show Gist options
  • Save wolfsage/8291610 to your computer and use it in GitHub Desktop.
Save wolfsage/8291610 to your computer and use it in GitHub Desktop.
My attempt at producing dubstep
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