Coding Guideline
Coding Guideline
6. Avoid global variables, but if they are essential then put them in Global.pm(to help reduce
redundancy) file.
7. Function Name: function name should start from lower case like getAssociatedFab().
8. Functionality should explain along with function definition.
9. Variable name should also in camel case format, like $isBinaryCode.
10. Write proper unit test with every function.
11. In case of exception, use “confess” instead of “die”.
12. Use tab before conditional or loop expression.
Sub getAssociatedFab(){
My $self =shift;
If(){
If(){
}
}elsif(){
}else{
Initialize().