in reply to (jeffa) Re: Coding Perl With Style
in thread Coding Perl With Style

When I write a 'getter' of a static value, not used by other methods in the same module, I tend to write:

package Foo; sub bar {27;} 1;


If more than one method in my module needs this value, then I let the other methods all use the first method, the one having the value hard coded (in this case 'bar').

Any pros and cons to this approach?

f--k the world!!!!
/dev/world has reached maximal mount count, check forced.