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

i recently installed the newest version of mac osx (maverick) which did a clean install of perl. as usual, perldoc no longer works without setting the execute bits. i've always been mystified by this". reading the contents of /usr/bin/perldoc it says

The contents of this script should normally never run! The perl wrapp +er should pick the correct script in /usr/bin by appending the appropriat +e version. You can try appending the appropriate perl version number. See perlma +cosx.pod for more information about multiple version support in Mac O +S X.

what is this wrapper that perldoc refers too? why do i have to set the execute bits to get this to work?

tia.

Replies are listed 'Best First'.
Re: perldoc and perl wrapper
by Anonymous Monk on Oct 23, 2013 at 22:39 UTC

    what is this wrapper that perldoc refers too?

    Presumably /usr/bin/perl or whatever (`which perl`)

    The same way that file you're reading isn't the real perldoc, the appleness folks have one for perl which isn't the real perl

    Not having appleness I cant say more than that, other than that all this is something the appleness folks add and it isn't part of perl