Re: A funny module that shortens one-liners - is it worth global namespace?

[email protected] (Smylers)
Newsgroups perl.module-authors
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.