http://qs321.pair.com?node_id=1054418

citromatik has asked for the wisdom of the Perl Monks concerning the following question:

For legacy reasons I want to include a couple of method aliases in a production API. One simple way of doing this is something on the lines of:

sub legacy_method { my ($self, @args) = @_; return $self->current_method(@_); }

But I am wondering if an alternative using goto would serve for this purpose:

sub legacy_method { goto(&current_method); }

Due to the characteristics of this version of goto it looks like a sensible approach. So far it passes the tests and seems to work fine, but I would like to ask if anyone sees any drawback to this approach.

citromatik