This may solve both of your dilemmas:

http://search.cpan.org/~ovid/aliased-0.22/lib/aliased.pm

:-)

We packaged that for Debian not too long ago.

On Tue, May 26, 2009 at 11:38 AM, Eric Wilhelm <[email protected]> wrote:
> Hi Chris,
>
> # from Chris Burel
> # on Tuesday 26 May 2009:
>
>>One thing I thought of doing was calling the module Qt4, but that would
>>populate the Qt namespace.
>
> That is going to cause you headaches with the PAUSE indexer.  It finds
> all of your package statements and will flag your dist as unauthorized
> if you use an existing package.
>
> But actually, this sort of thing is rather clunky and unusual for Perl
> code:
>
>  use Qt4;
>  my $app = Qt4::Application(\...@argv);
>
> That is, if you're worried about the repetitive typing, I think the ::
> is a bigger source of tedium.
>
> If Application() is going to be a constructor function -- as opposed to
> the more typical new() -- it may as well be exported as QApplication().
>
> And really, what's wrong with Qt4::Application->new()?
>
> --Eric
> --
> "It works better if you plug it in!"
> --Sattinger's Law
> ---------------------------------------------------
>    http://scratchcomputing.com
> ---------------------------------------------------
>

Reply via email to