The Perl Best Practices and thus Perl::Critic recommends against the usage of

my $x = $foo if $bar;

http://search.cpan.org/dist/Perl-Critic/lib/Perl/Critic/Policy/Variables/ProhibitConditionalDeclarations.pm

Can anyone give examples where the above statement is indeed confusing
or when it generates results that
are unexpected by the less experienced?

regards
   Gabor
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to