Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have another module called utmysql.pm that makes calls to encrypt.pm and has a 'use encrypt.pm' statement in it.
I'm writing a script (lets call it test.pl) that calls both encrypt.pm and utmysql.pm with 'use' statements.
If I try calling a function (called randsalt) from encrypt.pm in test.pl I get an error messages says :
--
Undefined subroutine &main::randsalt called at ./test.pl line 8
---
I comment out 'use utmysql' test.pl works fine. I've tried calling randsalt as &randsalt and &encrypt::randsalt but I still run into the same problem. Suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: modules within modules...a question
by Crian (Curate) on Apr 01, 2004 at 15:42 UTC | |
|
Re: modules within modules...a question
by dragonchild (Archbishop) on Apr 01, 2004 at 15:43 UTC | |
by Crian (Curate) on Apr 01, 2004 at 15:49 UTC |