in reply to pmpath

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: pmpath
by blakem (Monsignor) on Jan 24, 2002 at 00:51 UTC
    Since, perldoc will farm out the display to your favorite pager, this quick hack seems to work on my linux machine. ;-)
    % PAGER=echo perldoc -m Data::Dumper /usr/local/lib/perl5/5.6.1/i586-linux/Data/Dumper.pm

    -Blake

      Good idea! That worked here too. I guess his stems from the fact that I didn't know the perldoc '-m' switch. What I also from all this is HUGE amount of documentation perl comes with. I always survived by using the books to look things up in a hurry and never though of checking perldoc.

      biz

Re: Re: pmpath
by Anonymous Monk on Jan 23, 2002 at 18:44 UTC
    'perldoc -l' finds the path to the documentation and not the actual source. The 'pmpath' script will give you the location of the source.
      $ perldoc -l Data::Dumper
      /usr/share/perl/5.6.1/Data/Dumper.pod
      $ pmpath Data::Dumper
      /usr/lib/perl/5.6.1/Data/Dumper.pm (2.102)
    
    On the other hand there may be a much better 'built in' way to do this. If so, I'd be happy to learn it.
        perldoc -m Data::Dumper
      Will pipe the entire module: both code and unformatted pod documentationi to your shell's $PAGER (in my case less).
      --
       __ () __ __ __ __   
      | o)--(_ | o) =| =| Jeff Bisbee       | #!/usr/bin/perl -w
      |__)__|__)__)__|__| jbisbee@yahoo.com | use strict or die;