in reply to Re: Is this call frowned upon? &method($objectref, $more_params)?
in thread Is this call frowned upon? &method($objectref, $more_params)?

The reason being is that I have a of languageX => \&init_languageX, and I want to just get the method funciton from the hash instead of doing a lot of ifs. But, i couldn't get the call to work without doing it my way. Why would it lose out on inherritance, if $self we got it like this:
sub set_lang { my $self = shift; my $lang = shift; ... &{$lang_to_func{$lang}}(...); }
--
Ryan -- http://www.calvin.edu/~rvbijl39
  • Comment on RE: Answer: Is this call frowned upon? &method($objectref, $more_params)?
  • Download Code