NaSe77 has asked for the wisdom of the Perl Monks concerning the following question:
but unfortunately this gives meuse strict; use warnings 'all'; my $found; for my $in_path (@INC){ next if ! -e $in_path."\\Win32API\\File.pm"; print "found module in $in_path ...\n"; $found = 1; last; } if ($found){ require 'Win32API::File'; my @drv = map{s/\\$//;lc} Win32API::File::getLogicalDrives(); print @drv; }
strange, no? can anyone help me?H:\>perl testINC.pl found module in C:/Perl/site/lib ... Can't locate Win32API::File in @INC (@INC contains: C:/Perl/lib C:/Per +l/site/lib .) at testINC.pl line 14.
----
NaSe
:x
Edit kudra, 2002-08-21 Changed title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strange things happen
by jmcnamara (Monsignor) on Aug 21, 2002 at 09:51 UTC | |
|
Re: strange things happen
by blakem (Monsignor) on Aug 21, 2002 at 09:51 UTC | |
|
Re: strange things happen
by smitz (Chaplain) on Aug 21, 2002 at 09:55 UTC | |
|
Re: problem with @INC when using activestate perl
by NaSe77 (Monk) on Aug 21, 2002 at 12:59 UTC |