Andrew Dunstan <andrew.duns...@2ndquadrant.com> writes: > On 09/19/2017 01:31 PM, Andres Freund wrote: >> # Include module showing backtraces upon failures. As it's a >> non-standard module, don't fail if not installed. >> eval { use Carp::Always; }
> Or maybe Devel::Confess ? Neither one seems to be present in a standard Perl installation :-( > In an eval you need a 'require' rather than a 'use', AFAIK. Yeah: $ perl -e 'eval { use Carp::Always; }' Can't locate Carp/Always.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at -e line 1. BEGIN failed--compilation aborted at -e line 1. $ perl -e 'eval { require Carp::Always; }' $ echo $? 0 regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers