Skip to content

Instantly share code, notes, and snippets.

@dur-randir
Created August 3, 2017 11:56
Show Gist options
  • Save dur-randir/bfa17fc674b4c0f6508ccb8b9a9423fc to your computer and use it in GitHub Desktop.
Save dur-randir/bfa17fc674b4c0f6508ccb8b9a9423fc to your computer and use it in GitHub Desktop.
perl -e 'sub foo {warn 42} $glob = $main::{foo}; $glob->(); *$glob{CODE}->()'
perl -e 'our $foo; sub foo {warn 42} $glob = $main::{foo}; $glob->(); *$glob{CODE}->()'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment