in reply to Re^17: Try::Tiny and -E (False Positive)
in thread Try::Tiny and -E

> You mean less simplified?

No I meant more plausible.

That just means obfuscated here, which I politely called less simplified.

  • Comment on Re^18: Try::Tiny and -E (False Positive)

Replies are listed 'Best First'.
Re^19: Try::Tiny and -E (False Positive)
by LanX (Saint) on Jan 09, 2026 at 00:27 UTC
    There is no plausible reason why this shouldn't cause a warning.

    Either it's involuntary bad design, and the author should be warned.

    (The right design is to only use Try::Tiny in the desired scope)

    Or the author does exactly know why he's doing this and can easily disable the warning.

    Considering that many projects are maintained by multiple authors, who often just C&P "working" code from former authors, this warning might be a good idea...

    > which I politely called less simplified.

    I politely called this "constructed"

    The only probable "false positive" I see in reporting conflicts is by using feature "try" in a class/package also defining a method ->try() which is never called as a function.

    But this warning would never be reported in my concept, because use feature normally happens long before subs are declared. Again: Pathological exceptions to that style imply that the author should actively disable the warning.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery