in reply to What is perldoc -lf doing?

perldoc -f NAME always lists results found in perlfunc.pod and perlop.pod.

That's what -l is telling you, for every possible NAME.

The builtin function grep is finally only found in perlfunc , but operators like == only in perlop .

D:\Users\lanx>perldoc -lf == C:\Perl_64\lib\pods\perlfunc.pod C:\Perl_64\lib\pods\perlop.pod D:\Users\lanx>perldoc -f == Equality Operators Binary "==" returns true if the left argument is numerically equal + to the right argument. ...

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^2: What is perldoc -lf doing?
by Aldebaran (Curate) on Aug 06, 2018 at 03:25 UTC

    What am I missing with my install?

    $ perldoc -f == No documentation for perl function '==' found $ sudo apt-get install perl-doc [sudo] password for bob: Reading package lists... Done Building dependency tree Reading state information... Done perl-doc is already the newest version (5.26.1-6ubuntu0.2). 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. $
      It's probably MSWin specific. It doesn't work for me either, not even in blead:
      $ perldoc -f == No documentation for perl function '==' found

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
        Nope, it's missing on both platforms.

        X:\>perldoc -f == No documentation for perl function '==' found X:\>perl -v This is perl 5, version 24, subversion 1 (v5.24.1)

        My first working test was with Win/5.16 (later Linux/5.18).

        Most probably a regression between 5.18 and 5.24, perlop is still showing the entry.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Probably a glitch on console level.(?)

      I used Windows and you Linux and bash tries to use == for its own syntax.(untested)

      ( You know Perl was built for UNIX ... Ehm wait... ;)

      update

      Nope: works with Ubuntu and Perl 5.18, so probably a bug with newer Perl versions.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        Perldoc has been broken for at least 4 years and no one noticed? How does that get past the testers? perldoc -f == works on 5.18 but not 5.20 or higher on osx.