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.

Reply via email to