|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Module Creation and Function Callby thargas (Chaplain) |
| on Mar 19, 2012 at 18:49 UTC ( #960459=note: print w/ replies, xml ) | Need Help?? |
|
First, add: to your module so that perl will tell you of all the different things you're doing which probably aren't what you want. Then go read the docs on creating subs: perldoc perlsub ignoring the stuff about attributes (you don't need them) and prototypes (you don't want them either). That will tell you why you don't want to use &Configchk. Then you can read the docs for Exporter (perldoc Exporter) which may help with why you can't see @arr_iVPU_standard. (Hint: it's real name is @iVPU_Parameter::arr_iVPU_standard). But that doesn't really matter because you really don't want to do that either. Pass the array's in as array-refs, because (... you'll know why from reading perlsub) Perl comes with lots of well written, well organized documentation. I won't tell you to read all of it, but please do read the relevant parts. If you're not sure which they are, try: perldoc perl or google for it.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||