Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^6: fastcgi broke my Exports

by ikegami (Patriarch)
on Jul 15, 2009 at 23:01 UTC ( #780502=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://780502]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2023-03-21 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?