Friday, January 05, 2007

Perl : Locating a perl module file

How do you find out exactly where a perl module file is ? Following example searches Template.pm in the paths where perl modules are installed.

find `perl -e '$,="\n";print @INC'` -name Template.pm

Note

The perl command is in back-ticks. This is an example of command execution within a command.

2 comments:

  1. Anonymous11:14 PM

    -bash-2.05b$ perldoc -l CGI
    /usr/libdata/perl/5.00503/CGI.pm

    ReplyDelete
  2. Thanks for your comment ! Keep visiting my blog.

    Regards,
    Ketan

    ReplyDelete