From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

#!/usr/bin/perl -w
use strict;
$^O eq 'VMS'
? ( skip_all => 'VMS' )
: ( tests => 4 )
);
for my $switch ( '-Ifoo', '-I foo' ) {
$Test::Harness::Switches = $switch;
ok my $harness = Test::Harness::_new_harness, 'made harness';
is +($harness->lib)[0], '-Ifoo', 'got libs';
}