Marcel Grünauer > App-perlfind-2.05 > App::perlfind::Plugin::UseModule

Download:
App-perlfind-2.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  1
View/Report Bugs
Module Version: 2.05   Source  

NAME ^

App::perlfind::Plugin::UseModule - Try the search word as a module name

SYNOPSIS ^

    # perlfind Getopt::Long

DESCRIPTION ^

This plugin for App::perlfind tries to use the search term as a module name. If the module can be loaded, it is added to the match results.

If it contains '::', it might be a fully qualified function name such as Foo::Bar::some_function or a module that's not installed but whose namespace-parent might be installed. For example, if Foo::Bar is installed but Foo::Bar::Baz isn't, we don't want think that there is a function Baz() in the package Foo::Bar; rather we want to show the docs for Foo::Bar::Baz. To distinguish between a function and a module, use a simple heuristic, which means it's a guess and won't always work: if the final symbol starts with an uppercase character, we assume it's a package, otherwise we assume it's a function.

syntax highlighting: