in reply to Unexpected errors using multiple TopLevel's in Perl/Tk
Added: Try this example:
It doesn't produce any warnings. Why? Because warnings are generated at compile time not run time. Remove the $^W++; and add -w to the shebang line and run it again. It works now, see? Name "main::test" used only once: possible typo at w.pl line 3.#!/usr/bin/perl $^W++; my $text = "blah"; print "$test\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Unexpected errors using multiple TopLevel's in Perl/Tk
by jdtoronto (Prior) on Jul 28, 2003 at 23:07 UTC |