Skip to content

Instantly share code, notes, and snippets.

@tene
Created November 22, 2008 00:54
Show Gist options
  • Save tene/27711 to your computer and use it in GitHub Desktop.
Save tene/27711 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use feature ':5.10';
use strict;
sub act {
my $action = shift;
no strict 'refs';
&{"Actions::$action"}();
}
act('move_up');
package Actions;
sub move_up {
say 'moving up';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment