Mon Sep 21 15:20:03 2015felipe [...] felipegasper.com - Ticket created
Subject:
Carp::longmess() prints “1” when given an object as first argument
Date:
Mon, 21 Sep 2015 14:19:44 -0500
To:
bug-Carp [...] rt.cpan.org
From:
Felipe Gasper <felipe [...] felipegasper.com>
Show quoted text
> perl -MCarp -e'package Thing; sub new { bless [] }; package main;
print scalar Carp::longmess(Thing->new())'
1
==============
This is sort of alluded to in the docs, but the docs say that it calls
warn() or die(); this is just printing “1”, which is pretty unhelpful.
-FG