Hi all, On 1 Jun 2013 03:11:01 -0000 Peter Scott <pe...@psdt.com> wrote:
> On Fri, 31 May 2013 13:13:29 +0000, Weidner, Ron wrote: > > my ( $proto, $common, $name, $options ) = @_; > > my $class = ref($proto) || $proto; > > That is a common bit of cargo-culting that you might want to rethink. I > know it's posted all over the place but it's generally considered a bad > practice now. See > http://search.cpan.org/~petdance/Perl-Critic-Bangs-1.08/lib/Perl/Critic/ > Policy/Bangs/ProhibitRefProtoOrProto.pm and near the end of http:// > www.stonehenge.com/merlyn/UnixReview/col52.html. > These links got broken due to word-wrapping. Here are the better links: * https://metacpan.org/module/Perl::Critic::Policy::Bangs::ProhibitRefProtoOrProto * http://www.stonehenge.com/merlyn/UnixReview/col52.html * http://perl-begin.org/tutorials/bad-elements/#obj_new (= a link to my own site). Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap Mastering ‘cat’ is almost as difficult as herding cats. — http://www.shlomifish.org/humour/bits/Mastering-Cat/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/