|Pathologically Eclectic Rubbish Lister|
Tk questionby perl_seeker (Scribe)
|on Sep 08, 2003 at 11:40 UTC||Need Help??|
perl_seeker has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Perl Monks,
I have a perl script which makes use of Tk
p1.pl,p2.pl,p3.pl,p4.pl contain subroutines which are called within subroutine s1.
As a further level of nesting,in p3.pl
p5.pl,p6.pl,p7.pl,p8.pl contain subroutines which are called within subroutine s2.
I had written all the code in parts, i.e. all the lower level subs first and then combined
the entire code using require statements.
The code was working fine this way.When I put all the subroutines in main.pl itself and removed
the require statements, I got a lot of Tk errors:
Tk::Error: Can't call method "insert" without a package or object reference at C:\monisha\project\Appliw\s.pl line
124, <EDINP> line 1.
Tk::Error: Tk::Label=HASH(0x23b8818) is not a Tk object at D:/Perl/site/lib/Tk.pm line 91, <EDINP> line 1.
Tk callback for tkwait
(command bound to event)
Tk::Error: Can't call method "get" without a package or object reference at C:\monisha\project\Appliw\s.pl line 46,
<EDINP> line 1.
Line 124 is this:
What is the problem here?