Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl/tk

Status
Not open for further replies.

basildon

Programmer
Oct 22, 2001
58
GB
Hi

I have bought the book, (Learning Perl/Tk, O'Reilly) and tested a program that

## Loads/edits/saves files using text widget"

this works fine

I have also created a program that calls a subroutine and creates another button, fine.

However once I paste the code from chapter8 program into the sub routine I'm hit with error messages as below

Global symbol "$t" requires explicit package name at helloc.plx line 56.
Global symbol "$mwilename" requires explicit package name at helloc.plx line 57. etc

Could anyone tell me of a quick way around this please?

Thanks
 
The error messages you described could have a simple solution. Do you use the module strict in your program?
If yóu do then delete this entry. The module requires every variable to be marked as my $var or glob $var. If you don't use this module you don't have to do this anymore.

Klofisch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top