How to properly use the try catch in perl that error.pm provides?

前端 未结 4 584
南旧
南旧 2021-02-03 20:04

I have found that there is the module Error that provides try and catch functionality like in java. But I am confused at how you can print the exception that returns.

I

4条回答
  •  难免孤独
    2021-02-03 20:23

    If you want something a bit more powerful than Try::Tiny, you might want to try looking at the TryCatch module in CPAN.

提交回复
热议问题