[clug] Perl @INC and finding modules weirdness

Hal Ashburner hal.ashburner at gmail.com
Thu Mar 4 09:00:45 MST 2010

>> Any clues as to why it can't locate a file in @INC then when it tells me the
>> content of @INC explicitly lists the file?
>> Permissions look ok to me but could that be it?
It was it,
$ for file in $(find /usr/lib/perl5/site_perl/Foo -name "*.pm"); do 
chmod 644 $file; done
Sorted it.
"Can't read" might have been a better error message in the perfect world 
where we are all inexorably heading (in this rather attractive hand basket).

in other news doing the above in a makefile makes it look like:

         $(shell for file in $(find . -name "*.pm"); do chmod 644 
$$file; done)

The double $$ in front of the shell variable was news to me.


More information about the linux mailing list