in reply to Re: perl equivalent to ruby's alias
in thread perl equivalent to ruby's alias

Does this really do what the poster wants? My impression was that Data::Alias is designed more to handle magic aliasing of scalars (possibly references), such as occurs in fors and subroutines, than to handle non-scalars such as subroutines. Of course, you can use
alias *old_func = \&new_func,
but I don't see what that gains over just
*old_func = \&new_func.
I searched the Data::Alias documentation for 'code' and 'function', but couldn't find anything indicating what I might be missing.