Skip Menu |

This queue is for tickets about the Test-Carp CPAN distribution.

Report information
The Basics
Id: 63063
Status: resolved
Priority: 0/
Queue: Test-Carp

People
Owner: Nobody in particular
Requestors: TODDR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.1
Fixed in: (no value)



Subject: perl 5.13 deprecation in TC
for qw() {} is deprecated.
Subject: patch.txt
diff --git a/lib/Test/Carp.pm b/lib/Test/Carp.pm index 6d53986..b439f12 100644 --- a/lib/Test/Carp.pm +++ b/lib/Test/Carp.pm @@ -27,12 +27,12 @@ sub import { } no strict 'refs'; - for my $func qw( + for my $func (qw( does_carp does_cluck does_croak does_confess does_carp_that_matches does_cluck_that_matches does_croak_that_matches does_confess_that_matches - ) { + )) { *{ $caller . "::$func" } = *{$func}; }; }
Uploaded 0.2 w/ change, thanks Todd!