Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: First attempt at a module

by matija (Priest)
on May 21, 2004 at 07:34 UTC ( #355204=note: print w/replies, xml ) Need Help??

in reply to First attempt at a module

Are you sure that your module is being loaded correctly? I don't see a 'use lib "somedirectory";' in your What happens when you go into the script with the debugger and step into the subroutine calls? What do you see?

Replies are listed 'Best First'.
Re: Re: First attempt at a module
by sulfericacid (Deacon) on May 21, 2004 at 07:37 UTC
    I am not sure of anything at this point. I am not using "use lib" though as it's not giving me an error saying it cannot find the module like it typically does if it can't find it. So I assume it's finding the module just fine just on the account of it not telling me about it.

    I have tried: use lib "/Documents and Settings/Sulfericacid/Desktop/"; but the results haven't changed. (both script and .pm are on Desktop).

    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

      I think Richard Harris put it best in "Silence of the lambs":'When you assume you make an ass out of u and me'.

      Don't assume, check. If you can't think of any other way to check, make a deliberate syntax error in your module, and see if you get an error message. If you don't there must be some other module with the same name in your @INC.

      "$word is nothing more than $definition blah blah blah"


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2016-10-22 09:28 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.