in reply to Re^3: Tk subroutine
in thread Tk subroutine

If $count is static to just that sub, you could say
{ my $count; sub add_button { ... $count++; ... } }

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}