Subject: | perl Tk bug--matter of documentation for After.pm? |
Date: | Thu, 1 Feb 2007 07:54:58 -0800 (PST) |
To: | bug-Tk [...] rt.cpan.org |
From: | Brig Johnson <intotext [...] yahoo.com> |
Hi Nick (?),
I found the Tk::after module recently and liked what it did for me. Since it was "working", I didn't notice messages piling up in my error log saying things like:
#Subroutine _cancelAll redefined at
# C:/Perl/site/lib/Tk/after.pm line 11, <DATA> line 183.
#Subroutine Tk::After::Cancelled::once redefined at
# C:/Perl/site/lib/Tk/after.pm line 22, <DATA> line 183.
It appears that because I am on Windows, the "case" of how I invoke "after" matters, and this bug report is primarily one about documentation. (I think.) The errors appeared when I did:
require Tk::after;
which seemed to be specified by the NAME section of the documentation, i.e.
Tk::after - Execute a command after a time delay
yet a tour through PerlMonks found node http://perlmonks.org/index.pl?node_id=302959
"Windows pitfall: Subroutine redefined with use Modul" which pointed to "case" on a Windows platform as a problem. (Another PerlMonks post had me doing a "no warnings 'redefine';" which at least silenced the error messages but left me uncomfortable.)
Doing:
require Tk::After;
made the error messages cease. I'm not sure of the implications of using 'After' or 'after', but I would think I'd prefer the "automatic cancel" behavior.
Thanks,
Brig Johnson
Tampa, FL
(813) 968-2972