in reply to Re^5: Any gotchas with CGI and Mouse running together?
in thread Any gotchas with CGI and Mouse running together?

So to get more modular, perhaps "namespace::onlykeep" or Moo::OnlyNew?

{ package Foo; use Moo; has(('it', 'is', 'ro')); has(('bit', 'is', 'rw')); sub fit { warn $_[0]->bit, $_[0]->it; } use namespace::onlykeep qw/ fit new /; 1; } use Data::Dump qw/ dd /; my $f = 'Foo'->new('it', 'was', 'bit', 'ten'); dd($f); $f->fit; ## should warn dd($f->it, $f->bit); ## should die

Someone think of something please :)

  • Comment on Re^6: Any gotchas with CGI and Mouse running together? ( namespace::onlykeep , Moo::OnlyNew )
  • Download Code