Skip to content

Instantly share code, notes, and snippets.

@moltar
Created November 10, 2013 13:57
Show Gist options
  • Save moltar/7398603 to your computer and use it in GitHub Desktop.
Save moltar/7398603 to your computer and use it in GitHub Desktop.
__FILE__
package A;
sub file {
__FILE__;
}
package B;
use base 'A';
sub display {
shift->file;
}
package main;
use B;
say B->display;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment