aak has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to set a semicolon seperated list of directories with -I option when executing perl script. But the perl 5.8.1 fails to find files located in specified path. This worked fine with Perl 5.6.1. The commandline looks like perl -I C:\project\app1;C:\project\app2 test.pl

Replies are listed 'Best First'.
Re: Problem with -I option in Perl 5.8.1
by tinita (Parson) on Jun 04, 2004 at 15:07 UTC
    try
    perl -IC:\project\app1 -IC:\project\app2 test.pl
      Thanks for your help. This works. But is there a way to make the semicolon seperated list work as using multiple -I options will require considerable amount of changes in our code base.
        sorry, i don't know. i've always used multiple -I switches.
        i didn't know that it used to work with ; as a seperator before. also, i'm on linux, so i can't test what's happening on windows.
        trying this out on linux lets the shell think the statement finishes after the ;
Re: Problem with -I option in Perl 5.8.1
by chromatic (Archbishop) on Jun 04, 2004 at 16:28 UTC

    What happens if you set the PERL5LIB environment variable instead?

Re: Problem with -I option in Perl 5.8.1
by eserte (Deacon) on Jun 04, 2004 at 16:59 UTC
    Blame me, that was my patch (change #18102). The original bug report was "Bug in -I when path has double colons?". In prior perl versions, it was not possible to use a path containing a ":" with -I. As multiple -I are possible, the obscure feature to separate by ":" (or ";" on Windows-like systems) was removed.