Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
go ahead... be a heretic
 
PerlMonks  

Re^7: i need help in subroutines

by atcroft (Abbot)
on Feb 07, 2006 at 08:14 UTC ( [id://528508]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^6: i need help in subroutines
in thread i need help in subroutines

You appear to be using the first file you mention ('d:/test.pm') as a module, and it is complaining that it did not return a true value. Modules must return a true value to let perl know they loaded correctly. Try appending the following as the last line of that file, and see if it makes a difference:

1;

In addition to the resources previously mentioned by Corion, et. al., you may also wish to look at the Tutorials section of this site (especially tachyon's Simple Module Tutorial), and in the documentation that comes with perl at perlfaq7 (question "How do I create a module?"), as well as perlmod, perlmodlib, perlmodstyle, and perlnewmod.

HTH.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://528508]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.