Hi, Il 13/09/2016 12:19, Kyle Hall ha scritto:
TryCatch requires Moose while Try::Tiny is lightweight, but I guess we’re going down the Moose rabbit hole anyways these days? Doesn’t TryCatch just do try/catch/catch instead of if/elsif/elsif?
I had thought TryCatch's use of Moose would be a deal-breaker ( at least until Koha is officially plack-only ), but after inspecting the code, I don't believe it actually uses Moose. It does use packages in the Moose namespace, but it doesn't appear to use Moose itself, though it's possible I didn't go far enough down the rabbit hole.
reading the code of TryCatch I see that it use: Moose::Util::TypeConstraints that it use: Moose::Exporter; Moose::Deprecated that they use: Moose::Util::MetaRole Moose::Util Try::Tiny So in fact: -- Installing TryCatch we install also Try::Tiny -- We need to create an ad hoc debian package, the debian standard package uses Moose. -- Try::Tiny is in this package: https://packages.debian.org/jessie/libtry-tiny-perl, version 0.22 it is enough ? Bye Zeno Tajoli -- Zeno Tajoli /SVILUPPO PRODOTTI CINECA/ - Automazione Biblioteche Email: z.tajoli@cineca.it Fax: 051/6132198 *CINECA* Consorzio Interuniversitario - Sede operativa di Segrate (MI)