This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix context of caller call in Carp
authorGraham Knop <haarg@haarg.org>
Mon, 23 Nov 2020 22:12:49 +0000 (23:12 +0100)
committerKarl Williamson <khw@cpan.org>
Mon, 23 Nov 2020 22:26:56 +0000 (15:26 -0700)
commit42f8d732ff160bd4f03b0fd75c8ccd1592abbf85
tree5d719e10d07007f1664a14289a0480584b270d1c
parent428e0112db0c53f7d112599f1faec39df3c543cf
fix context of caller call in Carp

Carp's CARP_NOT variable is meant to have package names. caller in list
context returns the calling file and line in addition to the package
name.

Enforce scalar context on the call to caller to fix this.
dist/Carp/lib/Carp.pm