1 #!./perl -IFoo::Bar -IBla
5 unshift @INC, '../lib';
6 require './test.pl'; # for which_perl() etc
10 my $Is_VMS = $^O eq 'VMS';
14 ok do { grep { $_ eq $lib } @INC[0..($#INC-1)] }, 'Identified entry in @INC';
16 skip 'Double colons not allowed in dir spec', 1 if $Is_VMS;
18 ok do { grep { $_ eq $lib } @INC[0..($#INC-1)] },
19 'Identified entry in @INC with double colons';
23 fresh_perl_is("print grep { \$_ eq '$lib' } \@INC[0..(\$#INC-1)]", $lib,
24 { switches => ['-IBla2'], nolib => 1 }, '-I');
26 skip 'Double colons not allowed in dir spec', 1 if $Is_VMS;
28 fresh_perl_is("print grep { \$_ eq '$lib' } \@INC", $lib,
29 { switches => ['-IFoo::Bar2'], nolib => 1 }, '-I with colons');