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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^4: Tk subroutine
by shmem (Chancellor) on Sep 24, 2007 at 05:32 UTC
    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}
A reply falls below the community's threshold of quality. You may see it by logging in.