If someone knowledgeable at Perl reads this, can you please tell me why it is that, when installing a module, some *.pm files are executable (555) and others are not (444). What makes the former special? Also, why does Perl use such weird permissions? Thank you in advance.

@josemanuel The execute permission on .pm files is not necessary. However it may be that the installer tool just copies it from the source distribution. Perhaps the original source had it? Sometimes that can happen, especially if Windows or FAT filesystems are involved

Follow

@leonerd Thanks a lot! I downloaded the modules from CPAN, and some of those files come with 755 permissions. Then ExtUtils, I believe, chmods them to 555 at install time. It was making me crazy, because I couldn't find any fundamental difference between them and those who got 444 permissions.

@josemanuel If they're just .pm files in the lib/ directory you should be able to `chmod a-x` them all and it'll be fine.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.