in reply to Re: Perl One Liner to Check Location of a Module
in thread Perl One Liner to Check Location of a Module

If the module has both a .pod and a .pm, an undocumented trick is to say: perldoc -lm Foo::Bar and you get the .pm and not the .pod.

Replies are listed 'Best First'.
Re^3: Perl One Liner to Check Location of a Module
by xdg (Monsignor) on Apr 09, 2007 at 19:59 UTC

    I don't think it needs the -l in that case.

    perldoc -m Foo::Bar

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.