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
| [reply] [d/l] |
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
| [reply] |
'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.
| [reply] |
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;
| [reply] |