Created
February 24, 2013 02:21
-
-
Save berekuk/5022291 to your computer and use it in GitHub Desktop.
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
sub custom_commands { | |
my $self = shift; | |
return ($self->custom_commands, "helloworld"; | |
} | |
sub do_custom_command { | |
my $self = shift; | |
my $command = shift; | |
if ($command eq 'helloworld') { | |
print "Hello, world!\n"; | |
return; | |
} | |
$self->SUPER::do_custom_command($command, @_); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment