better check for overload::StrVal
authorZefram <zefram@fysh.org>
Sun, 18 Aug 2013 13:24:30 +0000 (14:24 +0100)
committerZefram <zefram@fysh.org>
Sun, 18 Aug 2013 13:24:30 +0000 (14:24 +0100)
commit578ded8b83c81ed50a24240399864adf97d37c64
treebe3273efde1fbcbaa45e87e5435d03d07a62da3b
parent3bcf54a5101e82a7b6351d1c47a85c1e9c5cf6c3
better check for overload::StrVal

The overloading logic in Carp got confused on perl 5.6 by the overload
module not setting $VERSION.  As the overload-is-loaded check controls
the use of overload::StrVal(), check for that sub being defined rather
than checking $VERSION.
dist/Carp/lib/Carp.pm