in reply to Re: Module Naming Dilemma
in thread Module Naming Dilemma
I prefer having a variable too. I'd even do
to make sure that I didn't mistype the class name. (See Re: Capitalized subroutine names and packages.)our $Customer = My::Company::Namespace::Customer::; # <--- trailing +colons!
Variables has the extra advantage of expanding right:
Generally, I don't like to make stuff look like something it isn't.# Hi, this is written by me, the maintainer. do_something_with_class(Customer => \&callback); # Oops, I missed that Customer really was a # subroutine mimicing a bareword. *That* took a # while to figure out, huh!
ihb
See perltoc if you don't know which perldoc to read!
Read argumentation in its context!
|
|---|