Skip to content

Instantly share code, notes, and snippets.

@tobyink
Created March 10, 2023 07:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobyink/add7fe104b94d6adfd960615b4a96ac2 to your computer and use it in GitHub Desktop.
Save tobyink/add7fe104b94d6adfd960615b4a96ac2 to your computer and use it in GitHub Desktop.
sub import {
shift;
@_ = 'with' unless @_;
Keyword::Simple::define $_, \&__rewrite_with for @_;
}
sub unimport {
shift;
@_ = 'with' unless @_;
Keyword::Simple::undefine $_ for @_;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment