664, 668 - Getopt::Long
Ovid
publiustemp-tapx at yahoo.com
Fri Oct 5 00:15:14 BST 2007
--- David Golden <xdaveg at gmail.com> wrote:
> $ prove -MSome::Plugin -MSome::Other::Plugin -D archive_file=foo.txt
> -D color=yes
Aside from my earlier comments where I agreed with this explicitness
but also agree with Eric's dislike of the verbosity, here's a
compromise.
Back when I was a committer on Catalyst, I ran into the following
problem:
use Catalyst qw/
Session
Session::Store::FastMmap
Session::State::Cookie
/;
Those were all plugins named things like 'Catalyst::Plugin::Session'
and things like that. The problem is that the shortcut makes it
difficult to deal with different package names, so one thing I
committed allowed this:
use Catalyst qw/
Session
Session::Store::FastMmap
Session::State::Cookie
+Fully::Qualified::Plugin::Foo
/;
The "Fully::Qualified::Plugin::Foo" didn't have "Catalyst::Plugin::"
prepended. Surely we can find a similar compromise?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
More information about the tapx-dev
mailing list