Ben Humphreys

  • Archive
  • RSS

Super-hack for turning off Validation in Moose

Thanks to Sartak in #moose for this little gem of hack-tastic meta-fantastic goodness.

{
    package Moose;
    around has => sub {
        my $orig = shift;
        my $name = shift;
        my %args = @_;
        delete $args{isa};
        $orig->($name, %args);
    };
}
    • #programming
    • #moose
    • #perl
  • 2 years ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

Avatar Computational linguistics researcher at Kyoto University, focussing on machine translation. Also learning Japanese, Korean, French and other badassery.
(日本語版)

Me, Elsewhere

  • @benhumphreys on Twitter
  • benhumphreys on github
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr