in reply to Module Creation and Function Call
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.use strict; use warnings;
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Module Creation and Function Call
by educated_foo (Vicar) on Mar 20, 2012 at 12:56 UTC | |
by thargas (Deacon) on Mar 20, 2012 at 13:12 UTC |