Perl Coding Guidelines
- avoid usage of "qw()" or "qw//" for single items.
- place the parameter code inline with the method declaration
sub myMethod { my(param1, param2) = @_; #code }
- use a semicolon after the return statement.
- Use the following structure for classes
#------------------------------------------------- package My::Extended; use base 'My::Base'; #------------------------------------------------- sub new { my ($class) = @_; my $self = My::Base->new; bless $self, $class; $self->{'extendedData'} = 11; return $self; } #-------------------------------------------------