|laziness, impatience, and hubris|
Use module questions..by kiat (Vicar)
|on Apr 20, 2003 at 03:17 UTC||Need Help??|
kiat has asked for the wisdom of the Perl Monks concerning the following question:
I'm new to using modules and have a couple of questions regarding the following code. Note that I've included the main script named power.cgi and the module named Test.pm.
My questions are:
1) What is the difference between specifying use lib '/httpd/cgi-bin/module'; and use lib '.';?
2) It seems I have to have either two use statements use Test; and use Test qw(&power); or just this one use Test qw($hello_away &power);. Which is the preferred method?
3) How can the code be improved?
Thanks in anticpation =)