Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created May 25, 2011 08:17
Show Gist options
  • Select an option

  • Save ingydotnet/990561 to your computer and use it in GitHub Desktop.

Select an option

Save ingydotnet/990561 to your computer and use it in GitHub Desktop.
use constant true => ( is => 'rw', default => sub {1});
use constant false => ( is => 'rw', default => sub {0});
has option1 => true;
has option2 => false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment