Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 41435
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: krasnoroot [...] mail.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
There were also other inaccuracies regarding the Tk::place documentation. The fixed version is now available from the Tk SVN repository (https://svn.perl.org/modules/Tk/trunk) as change 12136. Regards, Slaven