in reply to Re^6: Try::Tiny and -E
in thread Try::Tiny and -E

I would prefer a warning rather than have the program crash without a proper explanation.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^8: Try::Tiny and -E
by ikegami (Patriarch) on Jan 07, 2026 at 15:33 UTC

    But programs that use Try::Tiny don't crash just because perl 5.40 is used. What you suggested would make every program that uses Try::Tiny start warning even when there's absolutely no issue.

      True,but I find that a small price to pay for peace of mind.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics