in reply to Re: checking existence of a tag in a TK::Text?
in thread checking existence of a tag in a TK::Text?

when $list->index("T$j.first") fails the subroutine that contained it returns without doing anything further.
Therefore I need to know if it exists first before I fetch the index.

Replies are listed 'Best First'.
Re^3: checking existence of a tag in a TK::Text?
by Anonymous Monk on Apr 30, 2018 at 08:49 UTC
    Did you say that out loud? Try saying that out loud. If a tag doesnt exist do nothing . if index says a tag doesnt exist do nothing. Hmmm. Can you hear what youre saying? Do you remember your previously posted code? Each tag had its own callback closure -- it could only be called if a tag existed... Hmmm.. What? Yeah. What? Ok :)