Skip to content

Instantly share code, notes, and snippets.

@warewolf
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save warewolf/04f51326b4ae90900b54 to your computer and use it in GitHub Desktop.

Select an option

Save warewolf/04f51326b4ae90900b54 to your computer and use it in GitHub Desktop.
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