Subject: | [PATCH] Fix for Bareword "Carp::confess" not allowed while "strict subs" |
Currently, I'm getting errors when trying to use B::PerlReq. The error
I get is that Perl is thinking Carp::confess is a bareword. Adding
parentheses seems to fix the problem. My patch is attached below.
--- lib/B/PerlReq.pm.old 2006-10-23 12:50:58.000000000 -0500
+++ lib/B/PerlReq.pm 2006-10-23 12:55:37.000000000 -0500
@@ -329,7 +329,7 @@
$| = 1;
local $SIG{__DIE__} = sub {
print STDERR "# died at $0 line $CurLine:\n# @_";
- require Carp; Carp::confess;
+ require Carp; Carp::confess();
};
grok_blocks();
grok_main();