in reply to Question about Perl man pages

%perldoc perlop comma
since perldoc is the command that runs a program which looks for .pod format information and it accepts switches like perlop, perlfunc...etc whereas it appears that you are using a switch that your system terminal is interpreting as a command when it says -bash: perlfunc: command not found...

Also read %perldoc perldoc.

Update: On a deeper inspection, I advice you, I agree with bartonski that perldoc would seek to find the manpages for both perlop and comma together, heed cdarke's reply.. Using the -f, -q ...etc switches is my fav method checking the docs on my XP machine...

I am interested at finding more about the OS differences when it comes to accessing the documentation and whether the Camel book has really meant that the OP's original query was possible on an OS different from the Debian or XP as I feel intrigued too..


Excellence is an Endeavor of Persistence. A Year-Old Monk :D .

Replies are listed 'Best First'.
Re^2: Question about Perl man pages
by bartonski (Initiate) on Jul 08, 2010 at 02:38 UTC

    The implication in Programming Perl is that 'perlop', 'perlfunc', etc. are directly executable, not run as arguments to perldoc.

    Furthermore,
    $ perldoc perlop comma No documentation found for "comma".

    ... i.e. perldoc is trying to display the man pages for both 'perlop' and 'comma'.

    perldoc -f works fine, and I'll probably use the alias suggested by cdarke.

    I'm simply curious about why 'Programming Perl' says that I can search perl man pages using the name of the man page and a Perl regular expression, and then I can't.

    As irrational as it sounds, I feel a little cheated... that seemed like a nice little shortcut, and I'm disappointed that the Camel book has led me to a non-existent feature.