How do I call a handler from inside a "tell"?

I have a subroutine that I need to call several times. The subroutine works fine in my test script except, apparently, it cannot be called from within a “tell”. As soon as I put it in a “tell” I get a useless error that just says an error occurred, can’t continue. How do call a handler from within a “tell”? TIA.

Put my in front of the handler call.

See also: Scope of Subroutine Calls in Tell Statements

Works perfect. Thanks and thanks for that reference.