On Wed, Apr 11, 2012 at 4:22 PM, Ovid <publiustemp-perl...@yahoo.com> wrote:
>         my @modules = qw(
>           Test::Trap::Builder::TempFile
>           Test::Trap::Builder::SystemSafe
>           Test::Trap::Builder
>           Test::Trap
>         );
>         push @modules => 'Test::Trap::Builder::PerlIO' if eval "use PerlIO; 
> 1";
>         plan tests => scalar @modules;

I don't think that «if eval "use PerlIO; 1"» logic makes much sense.
It should return true on any perl 5.8+, even without PerlIO support
(not that you want to support that). If you must, use
$Config{useperlio}.

Leon

Reply via email to