That is, after the ->reply->exception. -Dan
On Mon, Nov 16, 2020 at 12:18 PM Dan Book <gri...@gmail.com> wrote: > A common idiom is `undef $tx;` since you are also done with the object at > that point. > > -Dan > > On Mon, Nov 16, 2020 at 8:41 AM Felipe Gasper <fel...@felipegasper.com> > wrote: > >> I think you could do: >> >> $tx = $tx; >> >> … instead. (It might be worth updating the FAQ to do that?) >> >> -F >> >> > On Nov 16, 2020, at 8:08 AM, Edward Baudrez <edward.baud...@gmail.com> >> wrote: >> > >> > Hello list >> > >> > There is this hint in the FAQ about keeping a strong reference to the >> transaction object $tx around, so that the message "Transaction already >> destroyed" does not appear in the logs: >> > >> > >> https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Transaction-already-destroyed-mean >> > >> > However, that yields a warning, viz. "Useless use of private variable >> in void context" at the lone "$tx". Any hints how to avoid this warning? >> > >> > >> > Kind regards >> > Edward >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Mojolicious" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to mojolicious+unsubscr...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/mojolicious/8b3ab4a2-5f18-4d1f-8743-82b573af26bbn%40googlegroups.com >> . >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mojolicious" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to mojolicious+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/mojolicious/F3AF3253-E058-4351-B913-12244352F95E%40felipegasper.com >> . >> > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/CABMkAVXepzVyiSJGku5TePBACbMfBPGNHAkW65yPBvUqa%3DAXsA%40mail.gmail.com.