Konstantin S. Uvarin writes: > Hello everyone, > > > 1perl -e '$x = My::Very::Long::Module->new( foo => 42 ); print $x->foo' > > Good point. And there's also L module https://metacpan.org/pod/L which > does more or less what I propose.
L looks to be the equivalent of Class::Autouse :superloader, but slightly different from your proposal — it still requires typing the ‘new’. > So I think this topic is covered. =) Your variation is as valid as anybody else's. If you prefer the syntax or particularly way of working with your module rather than the existing ones, then others might too. Don't be discouraged from publishing yours as an alternative for users to choose from. Smylers -- http://twitter.com/Smylers2