Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw content of script is shown instead of POD #21

Open
ikedas opened this issue Jun 14, 2022 · 0 comments
Open

Raw content of script is shown instead of POD #21

ikedas opened this issue Jun 14, 2022 · 0 comments

Comments

@ikedas
Copy link

ikedas commented Jun 14, 2022

  • On Debian (at least Debian 11 bullseye, afaik), if perl has been installed but perl-doc package which includes perldoc has not, /usr/bin/perldoc is replaced with a placeholder as below:
    #!/bin/sh
    # place-holder, diverted by perl-doc
    echo You need to install the perl-doc package to use this program. >&2
    exit 1
    
  • On the other hand, Pod::Usage uses perldoc by default to format POD in the script.
    However, if perldoc returns non-zero exit status, Pod::Usage try to fallback to the pager.

As a result, raw content of the script is shown instead of POD section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant