http://qs321.pair.com?node_id=780502


in reply to Re^5: fastcgi broke my Exports
in thread fastcgi did NOT break my Exports, issue now resolved

# perl -e 'use My::Module::Account qw(_GenerateAccountSummary); _Gener +ateAccountSummary();' Undefined subroutine &main::_GenerateAccountSummary called at -e line +1.
Three possibilities:
  1. &My::Module::Account::import doesn't exist and My::Module::Account doesn't inherit a method named import.

    Test:

    perl -wle'use My::Module::Account qw(_GenerateAccountSummary); print M +y::Module::Account->can("import") || "no"'
  2. The import does not create a sub named _GenerateAccountSummary in the caller's namespace in response to the call.

    Test:

    perl -wle'use My::Module::Account qw(_GenerateAccountSummary); print * +{$::{_GenerateAccountSummary}}{CODE} || "no"'
  3. _GenerateAccountSummary is successfully exported, but it has not been defined.

    Test:

    perl -wle'use My::Module::Account qw(_GenerateAccountSummary); print d +efined(&_GenerateAccountSummary) ? "yes" : "no"'

The first to output "no" indicates the cause.