Subject: | Possible (???) error in Tk::place documentation |
Date: | Thu, 04 Dec 2008 23:28:33 +0500 |
To: | bug-Tk [...] rt.cpan.org |
From: | Alexander Krasnorutsky <krasnoroot [...] mail.ru> |
Hello!
Tk/place.pod tells:
"The place method returns an empty string as result."
But it seems to be wrong if this method was called like in this example:
#============
use Tk;
$w = new MainWindow;
$b = $w->Button;
$t = $b->place(-x => 0, -y => 0);
print $t;
MainLoop
#============
This code prints something like this: "Tk::Button=HASH(0x9d8cc18)".
If we replace "place" with "Tk::place" in this example we will see that
$t will be "undef": "Use of uninitialized value in print at example.pl
line 5". "Undef" value is an empty string but we will see a warning that
this variable is uninitialized.
I use Tk version 804.028, perl 5.8.6, Linux.
Regards
--
Alexander Krasnorutsky.