# new MyModule(arg1 => 'val1', arg2 => 'val2') sub new { my $class = shift; croak('oh crap!') if @_ % 2; my %args = @_; }