This plugin works by adding extra run modes (named view_code and view_pod ) to the application. By calling this run mode you can see the source or POD of the running module (by default) or you can specify which module you would like to view (see SECURITY).

BEGIN { $ENV{CAP_DEVPOPUP_EXEC} = 1; } # turn it on for real
use CGI::Application::Plugin::DevPopup;
use CGI::Application::Plugin::ViewCode;

Befault, this report will be the same thing produced by view_code. If you want this report to include the view_pod report, simply set the the $ENV{CAP_VIEWCODE_POPUP_POD} to true. You can also turn off the view_code report but setting $ENV{CAP_VIEWCODE_POPUP_CODE} to false.

# have the POD report, but not the code in the dev popup window
BEGIN {
$ENV{CAP_DEVPOPUP_EXEC} = 1; # turn it on for real
$ENV{CAP_VIEWCODE_POPUP_POD} = 1; # turn on POD report
$ENV{CAP_VIEWCODE_POPUP_CODE} = 0; # turn off code report
}
use CGI::Application::Plugin::DevPopup;
use CGI::Application::Plugin::ViewCode;