Subject: Re: [PATCH] Attribute::Handlers till ears are bleeding
Message-ID: <
4745E9D9.1050102@conway.org>
p4raw-id: //depot/perl@32488
no warnings;
my $evaled = !$raw && eval("package $pkg; no warnings; no strict;
local \$SIG{__WARN__}=sub{die}; [$data]");
- $data = ($evaled && $data =~ /^\s*\[/) ? [$evaled]
- : ($evaled) ? $evaled
- : [$data];
+ $data = $evaled || [$data];
$pkg->$handler($sym,
(ref $sym eq 'GLOB' ? *{$sym}{ref $ref}||$ref : $ref),
$attr,
}
sub test2 :Loud(['till','ears','are','bleeding']) {
- [[qw(till ears are bleeding)]]
+ [qw(till ears are bleeding)]
}
sub test3 :Loud(qw/till ears are bleeding/) {