blob: 9232d689e5069890b9c034558963188e86b47cfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use strict;
use warnings;
use Test::More tests => 1;
# [perl #132910]
package Foo;
sub can { die }
package main;
use Carp;
eval {
sub { confess-sins }->(bless[], 'Foo');
};
like $@, qr/^-sins at /;
|