in reply to Re: WWW::Mechanize::Link bug?
in thread WWW::Mechanize::Link bug?

Obviously, I wasn't clear enough. The subroutine was given only to show what I wanted, not to imitate inheritance. I only compared the text method with text function to show the results.