Last active
August 29, 2015 14:20
-
-
Save warewolf/04f51326b4ae90900b54 to your computer and use it in GitHub Desktop.
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 Some::Thing; | |
| use fields qw( | |
| _private | |
| public | |
| ); | |
| sub new { | |
| my Some::Thing $self = shift; | |
| unless (ref $self) { | |
| $self = fields::new($self) | |
| } | |
| return $self; | |
| } | |
| 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment