in reply to perldoc -lf anomaly

You are combining two unrelated options.

What do you expect -lf to produce???

If anything this undefined behaviour should be rejected.

Anyway my best guess is that

So this "anomaly" makes IMHO perfect sense.

Edit

Usage demo

$ perldoc -l perldoc /data/data/com.termux/files/usr/lib/perl5/5.40.3/pod/perldoc.pod $ perldoc -l Data::Dumper /data/data/com.termux/files/usr/lib/perl5/5.40.3/aarch64-android/Data/ +Dumper.pm $ perldoc -f x x xor These operators are documented in perlop. $

Update

If your intention was to find every perldoc documenting a certain keyword :

I once wrote a script which will parse them all for X<keyword> tags.

See Perldoc Keyword Search (update3)

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

Replies are listed 'Best First'.
Re^2: perldoc -lf anomaly
by Anonymous Monk on May 08, 2026 at 08:35 UTC
    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!