develooper Front page | perl.qa | Postings from August 2005

Re: Test::Code

Thread Previous | Thread Next
From:
Ivan Tubert-Brohman
Date:
August 11, 2005 18:17
Subject:
Re: Test::Code
Message ID:
42FBF8AC.8090402@cpan.org
Michael G Schwern wrote:
> On Thu, Aug 11, 2005 at 02:49:57PM -0700, Ovid wrote:
> 
>>  BEGIN { use_ok 'Test::Code' or die }
>>
>>  ok defined *::is_code{CODE},
>>    '&is_code should be exported to our namespace';
> 
> 
> I usually do this with can_ok()
> 
> 	can_ok( __PACKAGE__, qw(is_code isnt_code) );

Isn't

   ok defined *::is_code{CODE};

just a convoluted way of saying

   ok defined &is_code;

?

Ivan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About