I used this with the follwing command line C:\perl-programs>test-inc-iarg.pl -I c:\perl-programs\modules The print lines gave the following C:/perl5/lib C:/perl5/site/lib . As can be seen the addtional directory was not shown in the @INC array. Can anyone explain why this and what I should do so that I can use the -I argument? The folder options have been set so that files with extension .pl are processed as shown next C:\perl5\BIN\PERL.EXE %1 %*use strict "vars"; my $inc_item; foreach $inc_item (@INC) { print "$inc_item\n"; }
In reply to Problem using -I argument with Perl by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |