On Mon Sep 25 16:58:47 2006, phillipm@tierra.net wrote:
Show quoted text> Hi,
> Using Perl::Critic-0.2 with perl 5.8.8 on FreeBSD,
>
> I get "Capture variable used outside conditional at ..." for the code:
>
> my $foo = $bar =~ /\A (\w+) \z/mx ? $1 : 'default';
>
> Thanks.
>
> Phil
>
Ooh, good catch! I forgot about ternaries. I'm headed out on vacation
in a few hours(!) but I'll look at this when I get back.
-- Chris