Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@diakopter
Last active January 7, 2016 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diakopter/7981dc5b1d0ff7598e53 to your computer and use it in GitHub Desktop.
Save diakopter/7981dc5b1d0ff7598e53 to your computer and use it in GitHub Desktop.
my $compile-time-sub;
sub call-compile-time-sub() is export { note 'before'; $compile-time-sub(); note 'after'; }
BEGIN { $compile-time-sub = -> { <.so .dll .dylib>.map("lib/" ~ *); }; }
call-compile-time-sub()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment