diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-07 17:48:27 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-07 18:09:03 +0100 |
commit | f2275431783a5aaed25c35b5deec37c244872a7a (patch) | |
tree | a7d8b0d97a1baca3f107c1b8018259d6955e933c | |
parent | 18dedf3463534a9f6c8137628c482298dbb0459b (diff) | |
download | monitoring-plugins-f2275431783a5aaed25c35b5deec37c244872a7a.tar.gz |
Use Try::Tiny instead of experimental feature
-rw-r--r-- | NPTest.pm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ use File::Basename; | |||
17 | 17 | ||
18 | use JSON; | 18 | use JSON; |
19 | 19 | ||
20 | use feature 'try'; | 20 | use Try::Tiny; |
21 | 21 | ||
22 | use IO::File; | 22 | use IO::File; |
23 | use Data::Dumper; | 23 | use Data::Dumper; |
@@ -623,7 +623,7 @@ sub testCmd { | |||
623 | 623 | ||
624 | try { | 624 | try { |
625 | $object->{'mp_test_result'} = decode_json($output); | 625 | $object->{'mp_test_result'} = decode_json($output); |
626 | } | 626 | }; |
627 | 627 | ||
628 | alarm(0); | 628 | alarm(0); |
629 | 629 | ||