Re: Revert use_ok() change to allow lexical effects?

Michael G Schwern <[email protected]>
Newsgroups gmane.comp.lang.perl.quality-assurance
Message-ID <[email protected]>
On 2012.4.11 9:39 AM, Andy Lester wrote:
> In this example:
> 
> BEGIN {
>     use_ok( 'App::Ack' );
>     use_ok( 'App::Ack::Repository' );
>     use_ok( 'App::Ack::Resource' );
>     use_ok( 'File::Next' );
> }
> diag( "Testing App::Ack $App::Ack::VERSION, File::Next $File::Next::VERSION, Perl $], $^X" );
> 
> it sounds like we're saying that the use_ok() doesn't help at all, and I might as well write
> 
> use App::Ack;
> use App::Ack::Repository;
> use App::Ack::Resource;
> use File::Next;
> diag( "Testing App::Ack $App::Ack::VERSION, File::Next $File::Next::VERSION, Perl $], $^X" );
> 
> Agreed?

Yes, exactly.


-- 
I do have a cause though. It's obscenity. I'm for it.
    - Tom Lehrer
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.