Hi Pablo! See below for my response.
On Sat, 23 May 2015 03:10:18 -0300 Pablo <pab_...@hotmail.com> wrote: > Hi. > > Something really odd is happening to me. For example, if I do `perldoc > -v $_` I get the information about $_ as expected, but whenever I try > `perldoc -f sort` I get this message: > > /No documentation for perl function 'sort' found./ > > It seems that perldoc doesn't find any Perl builtin function. However, > when I do `perldoc perlfunc` the pod document is diplayed correctly. How > can this be possible? Isn't the information about the sort function > picked up from perlfunc.pod? It is, I believe. > > I also set PERLDOCDEBUG to 1 and run `perldoc -f sort` and here is the > output: > > 'opt_o_with: Noting "text" as desired output format... > 'opt_o_with: Considering Pod::Perldoc::Totext > 'opt_o_with: Considering Pod::Perldoc::Totext > 'opt_o_with: Considering Pod::Perldoc::ToText > 'opt_o_with: Considering Pod::Perldoc::ToTEXT > 'opt_o_with: Considering Pod::Simple::text > 'opt_o_with: Considering Pod::Simple::text > 'opt_o_with: Considering Pod::Simple::Text > 'opt_o_with: Considering Pod::Simple::TEXT > 'opt_o_with: Considering Pod::text > 'opt_o_with: Considering Pod::text > 'opt_o_with: Considering Pod::Text > 'opt_o_with: Considering Pod::TEXT > 'opt_o_with: Noting "term" as desired output format... > 'opt_o_with: Considering Pod::Perldoc::Toterm > 'opt_o_with: Considering Pod::Perldoc::Toterm > 'opt_o_with: Considering Pod::Perldoc::ToTerm > 'opt_o_with: Considering Pod::Perldoc::ToTERM > 'opt_o_with: Considering Pod::Simple::term > 'opt_o_with: Considering Pod::Simple::term > 'opt_o_with: Considering Pod::Simple::Term > 'opt_o_with: Considering Pod::Simple::TERM > 'opt_o_with: Considering Pod::term > 'opt_o_with: Considering Pod::term > 'opt_o_with: Considering Pod::Term > 'opt_o_with: Considering Pod::TERM > 'GetOptsOO::getopts: Starting switch processing. Scanning arguments [-f > sort] > 'GetOptsOO::getopts: Ending switch processing. Args are [] with 0 errors. > 'pagers_guessing: Pagers: /usr/bin/less -Rmorelesspgviewcat'process: > /usr/local/bin/perldoc => Pod::Perldoc v3.25 > Attempting to drop privs... > 'add_translator: translator for 'es' loaded > 'process: > 'find_good_formatter_class: Formatter class Pod::Perldoc::ToTerm version > 3.25 successfully loaded! > 'find_good_formatter_class: Will format with the class Pod::Perldoc::ToTerm > 'grand_search_init: Searching for perlfunc > 'searchfor: Looking for perlfunc in > /usr/local/lib/perl5/site_perl/5.20.2/POD2/ES /usr/local/bin > /home/pablo/lib/perl5 /home/pablo/lib/perl5 > /usr/local/lib/perl5/site_perl/5.20.2/x86_64-linux > /usr/local/lib/perl5/site_perl/5.20.2 > /usr/local/lib/perl5/5.20.2/x86_64-linux /usr/local/lib/perl5/5.20.2 . > /usr/lib64/qt-3.3/bin /usr/local/bin /usr/bin /bin /usr/games > /usr/local/sbin /usr/sbin > 'grand_search_init: Found as /usr/local/lib/perl5/5.20.2/pod/perlfunc.pod Is the file in that URL displayed fine? > 'grand_search_init: Searching for perlop > > > 'searchfor: Looking for perlop in > /usr/local/lib/perl5/site_perl/5.20.2/POD2/ES /usr/local/bin > /home/pablo/lib/perl5 /home/pablo/lib/perl5 > /usr/local/lib/perl5/site_perl/5.20.2/x86_64-linux > /usr/local/lib/perl5/site_perl/5.20.2 > /usr/local/lib/perl5/5.20.2/x86_64-linux /usr/local/lib/perl5/5.20.2 . > /usr/lib64/qt-3.3/bin /usr/local/bin /usr/bin /bin /usr/games > /usr/local/sbin /usr/sbin > 'grand_search_init: Found as /usr/local/lib/perl5/5.20.2/pod/perlop.pod > No documentation for perl function 'sort' found > I'm also getting this in the output: « 'grand_search_init: Found as /home/shlomif/apps/perl/brew/perls/perl-5.20.2/lib/5.20.2/pod/perlop.pod 'maybe_generate_dynamic_pod: Hm, I found some Pod from that search! About to call new Pod::Text::Termcap (v2.08) with options: [width 80] 'unlink_if_temp_file: Unlinking /home/shlomif/tmp/Uzf8209svc Finished writing to /home/shlomif/tmp/uFg3v9lHsg. 'page: About to try calling less -isrr < /home/shlomif/tmp/uFg3v9lHsg » > I'd really appreciate some help with this issue, because I actually > can't solve it by my own. > Since "perldoc" and related code is written in perl, you can use a debugger to debug it. You can do: perl -d `which perldoc` -f sort See: * http://perl-begin.org/topics/debugging/ Moreover, can you share some details about your system, its versions, and the perl version you're using? Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ List of Portability Libraries - http://shlom.in/port-libs I hope that you agree with me that 99.9218485921% of the users wouldn’t bother themselves with recompilation (or any other manual step for that matter) to make their games run 1.27127529900685765% faster ;-) — Nadav Har’El Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/