Earlier someone suggest I use "use lib 'c:\h\COTS\Perl\lib'; in my code to overcome an error" can't locate File/Find.pm in @INC (@INC contains: c:\h\coe\comp\perl\lib\site c:\h comp\perl\lib c:\perl\lib c:\perl\lib\site c:\perl\lib\site .) at dir.pl li EGIN failed--compilation aborted at dir.pl line 3."
Well it did not work. I still could use some help. Here is my code:
The Find.pm is actually located in "c:\h\COTS\Perl\lib\File"#!/h/COE/Perl/bin/perl use lib 'c:\h\COTS\Perl\lib'; use File::Find; find(\&wanted,'/h', '/h/COE' ); sub wanted{ -d $_ && print "$File::Find::name\n"; }
In reply to Stuck with can't find module error by kirk123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |