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.

-- 
Peter Scott
http://www.perlmedic.com/     http://www.perldebugged.com/
http://www.oreillyschool.com/certificates/perl-programming.php
http://www.informit.com/store/product.aspx?isbn=9780133036268
http://www.oscon.com/oscon2013/public/schedule/detail/28923

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to