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

Re: Cannot call my installed module

by 2teez (Priest)
on Feb 23, 2013 at 23:05 UTC ( #1020358=note: print w/replies, xml ) Need Help??

in reply to Cannot call my installed module

I am trying to get a perl script to run my own installed module. I am getting the below message. Undefined subroutine &testdir::testsub called at call_module line 11.

Obviously, perl is telling you that the subroutine &testdir::testsub, used in line number 11 in your script is not available! Why? it was never "loaded".
Note is either you un-comment your this line:
# require '/home/sherman/build_dir/testdir/'; or add use testdir::moduletest; indicating where the subroutine you used in line number 11 is located.
Please also check perlmod
Hope this helps.

## Update:

  • I think this use V5.14.2; in your script should be use v5.14.2;
  • Adding this use testdir::moduletest;
    You can just easily call your subrotrine like thus:
    my $moduletest = testsub(0,2,0,2);
    And you are good to go :)...
  • it's also good practice to add use strict; to your scripts. Just saying...

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020358]
[Corion]: There is a weirdo shim because there is a POE integration for Prima, and if you use that, you can use the POE adapter of AnyEvent. What I'd want is something transport agnostic that parses HTTP or produces HTTP output, so that the communication with ...
[Corion]: ... the socket is done by my code. Ideally that module would not be based on callbacks ;)
[Corion]: Basically, something that decouples the HTTP parsing (+ determining whether to redirect, etc) from the IO
[Corion]: All clients I'm aware of don't do that but issue all IO themselves

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2016-12-07 15:52 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (130 votes). Check out past polls.