Skip to content

Instantly share code, notes, and snippets.

@berekuk
Created February 24, 2013 02:21
Show Gist options
  • Save berekuk/5022291 to your computer and use it in GitHub Desktop.
Save berekuk/5022291 to your computer and use it in GitHub Desktop.
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