Archive for June, 2007

perldoc tips

Friday, June 8th, 2007

Have you ever wanted to know where a Perl module lives on your file system?

Use

$ perldoc -l Module

For example, on my Linux box,

$ perldoc -l Data::Dumper
/usr/lib/perl5/5.8.6/i386-linux-thread-multi/Data/Dumper.pm

If you want to view the source code of the module, do,

$ perldoc -m Data::Dumper

Tweet This Post  Facebook 


Tweet This Post links powered by Tweet This v1.4.1, a WordPress plugin for Twitter.