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

Re: Functions not importing when module in folder

by choroba (Chancellor)
on Mar 25, 2013 at 13:36 UTC ( #1025303=note: print w/replies, xml ) Need Help??


in reply to Functions not importing when module in folder

After changing the path, you also have to change the package name to My_Module_Folder::My_Module. It might be more appropriate not to change the package name, though, but use lib instead.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Functions not importing when module in folder
by Anonymous Monk on Mar 25, 2013 at 13:47 UTC
    Wow! Thank you so much! This has been bugging me so much.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025303]
help
Chatterbox?
and God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-01-17 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (158 votes). Check out past polls.