Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created December 13, 2015 15:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zoffixznet/3022e62544149d6a03fa to your computer and use it in GitHub Desktop.
sub plug-name {
my $plug = callframe(3).file;
my $cur = $?FILE;
$cur ~~ s/'.pm6'$//;
$plug ~~ s:g/^ $cur '/' | '.pm6'$//;
$plug ~~ s/'/'/::/;
return $plug;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment