Created
January 16, 2015 05:22
-
-
Save preaction/78e7094746d242111fc6 to your computer and use it in GitHub Desktop.
Pythonic packages/classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package My::Pythonic::Package { | |
use My::Pythonic qw( Base ); | |
class MyClass extends Base { | |
} | |
} | |
# Now in package main again | |
use My::Pythonic::Package qw( MyClass ); | |
my $obj = MyClass->new; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment