in reply to Re: perldoc -lf anomaly
in thread perldoc -lf anomaly

What do you expect -lf to produce???

I expected -lf to only return the name of the file "splice" was found in (perlfunc), instead of all the files it searched (perlfunc and perlop), but I guess it just doesn't work that way.

> You are combining two unrelated options.

Thanks for the clarification!

Replies are listed 'Best First'.
Re^3: perldoc -lf anomaly (normality)
by LanX (Saint) on May 09, 2026 at 14:05 UTC
    For clarification, depending on the paths in the ENV perldoc might "find" different documents to generate doc.

    This is particular relevant if there is a NAME.pod file, forcing perldoc to ignore NAME.pl or NAME.pm.

    -l is supposed to show the path of the original files.

    In the case of -f both perlfunc and perlop must be "found" (and parsed) and -l will show their paths.

    This is actually relevant for debugging a messed up environment with multiple Perl installations.

    Edit

    According to perldoc the paths in PERL5LIB and PATH are searched for matching files.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery