Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Undefined subroutine &main::mkDec called at ./check.pl line 95.
I'm successfully loading 'StringDef.req' (it's fist line ist printed, and I can access its vars) which contains vars, def and functions dealing with the vars
but the sub mkDec() hereafter is not found?
the check.pl:
StringDef.req looks like:require 'StringDef.req'; ok ? .. my $def = $DEF{$itm}; # ok .. mkDec($Sym, \@qts); # fails :(
This causes:print "I'm loaded\n"; # ok %DEF = ( .. ); # ok .. sub mkDec { # not ok ???? ... }
Undefined subroutine &main::mkDec called at ./check.pl line 95.
Any idea?
Thanks in advance
Carl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: require and its subs
by borisz (Canon) on Nov 22, 2004 at 14:24 UTC | |
by Anonymous Monk on Nov 22, 2004 at 14:36 UTC | |
Re: require and its subs
by Roy Johnson (Monsignor) on Nov 22, 2004 at 14:50 UTC | |
Re: require and its subs
by matija (Priest) on Nov 22, 2004 at 14:33 UTC |
Back to
Seekers of Perl Wisdom